Error reading master configuration

psufnxk2000發表於2015-03-23
Error reading master configuration

設定主從同步時,出現下面的問題:

MariaDB [(none)]> change master to master_host='192.168.118.159', master_user='song_rep', master_password='song_rep', master_port=3307, master_log_file='binlog.000005', master_log_pos=624;
ERROR 1201 (HY000): Could not initialize master info structure for ''; more error messages can be found in the MariaDB error log
檢視日誌檔案
150207 22:36:06 [ERROR] Error reading master configuration
裡面只有這一行。


重置salve之後,可以。
MariaDB [(none)]> reset slave;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> change master to master_host='192.168.118.159', master_user='song_rep', master_password='song_rep', master_port=3307, master_log_file='binlog.000005', master_log_pos=624;
Query OK, 0 rows affected (0.04 sec)

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25099483/viewspace-1471044/,如需轉載,請註明出處,否則將追究法律責任。

相關文章