title: phpMyAdmin replication error: ./libraries/dbi/DBIMysqli.class.php#298
body: <p>Just set up binary log replication between a mysql 5.7 master running in ubuntu 16.04 and a MariaDB 10.0.28 slave running on my Asustor NAS AS204-TE.</p>
  
  <p>After a few attempts replication is working without issue however my only worry are two error messages phpmyadmin shows when I click into the 'Replication' view from the main page...</p>
  
  <p>Error 1:</p>
  
  <pre><code>Warning in ./libraries/dbi/DBIMysqli.class.php#298
   mysqli_fetch_array(): Malformed server packet. Field length pointing 0 bytes after end of packet
  
  Backtrace
  
  ./libraries/dbi/DBIMysqli.class.php#298: mysqli_fetch_array(
  object,
  integer 1,
  )
  ./libraries/DatabaseInterface.class.php#2760: PMA_DBI_Mysqli-&gt;fetchAssoc(object)
  ./libraries/DatabaseInterface.class.php#2069: PMA_DatabaseInterface-&gt;fetchAssoc(object)
  ./libraries/replication_gui.lib.php#612: PMA_DatabaseInterface-&gt;fetchResult(
  string 'SHOW SLAVE HOSTS',
  NULL,
  NULL,
  )
  ./libraries/replication_gui.lib.php#56: PMA_getHtmlForReplicationSlavesTable(boolean true)
  ./server_replication.php#56: PMA_getHtmlForMasterReplication()
  </code></pre>
  
  <p>Error 2:</p>
  
  <pre><code>Warning in ./libraries/dbi/DBIMysqli.class.php#298
   mysqli_fetch_array(): Error while reading a row
  
  Backtrace
  
  ./libraries/dbi/DBIMysqli.class.php#298: mysqli_fetch_array(
  object,
  integer 1,
  )
  ./libraries/DatabaseInterface.class.php#2760: PMA_DBI_Mysqli-&gt;fetchAssoc(object)
  ./libraries/DatabaseInterface.class.php#2069: PMA_DatabaseInterface-&gt;fetchAssoc(object)
  ./libraries/replication_gui.lib.php#612: PMA_DatabaseInterface-&gt;fetchResult(
  string 'SHOW SLAVE HOSTS',
  NULL,
  NULL,
  )
  ./libraries/replication_gui.lib.php#56: PMA_getHtmlForReplicationSlavesTable(boolean true)
  ./server_replication.php#56: PMA_getHtmlForMasterReplication()
  </code></pre>
  
  <p>So following a little logic the error message seems to revolve around listing the slaves connecting to the master.  So I click 'Ignore All' on the error and click the 'Show connected slaves' link which shows me nothing other than a tip to ensure "--report-host=xxx" is set on the slave.  I've confirmed the mysql (MariaDB) instance is starting on the slave with the needed parameter and going into mysql via the commandline on the master and issuing a SHOW SLAVE HOSTS; gives me the following output...</p>
  
  <pre><code>mysql&gt; show slave hosts;
  +-----------+----------+------+-----------+------------+
  | Server_id | Host     | Port | Master_id | Slave_UUID |
  +-----------+----------+------+-----------+------------+
  |         2 | blacknas | 3306 |         1 |            |
  +-----------+----------+------+-----------+------------+
  1 row in set (0.00 sec)
  </code></pre>
  
  <p>I'm not clear on what my next steps should be to further debug this so would appreciate any pointers?</p>