Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

phpMyAdmin replication error: ./libraries/dbi/DBIMysqli.class.php#298

$
0
0

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.

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...

Error 1:

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->fetchAssoc(object)
./libraries/DatabaseInterface.class.php#2069: PMA_DatabaseInterface->fetchAssoc(object)
./libraries/replication_gui.lib.php#612: PMA_DatabaseInterface->fetchResult(
string 'SHOW SLAVE HOSTS',
NULL,
NULL,
)
./libraries/replication_gui.lib.php#56: PMA_getHtmlForReplicationSlavesTable(boolean true)
./server_replication.php#56: PMA_getHtmlForMasterReplication()

Error 2:

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->fetchAssoc(object)
./libraries/DatabaseInterface.class.php#2069: PMA_DatabaseInterface->fetchAssoc(object)
./libraries/replication_gui.lib.php#612: PMA_DatabaseInterface->fetchResult(
string 'SHOW SLAVE HOSTS',
NULL,
NULL,
)
./libraries/replication_gui.lib.php#56: PMA_getHtmlForReplicationSlavesTable(boolean true)
./server_replication.php#56: PMA_getHtmlForMasterReplication()

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...

mysql> show slave hosts;
+-----------+----------+------+-----------+------------+
| Server_id | Host     | Port | Master_id | Slave_UUID |
+-----------+----------+------+-----------+------------+
|         2 | blacknas | 3306 |         1 |            |
+-----------+----------+------+-----------+------------+
1 row in set (0.00 sec)

I'm not clear on what my next steps should be to further debug this so would appreciate any pointers?


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>