ERROR---mariadb主从复制ERROR: No query specified

mariadb主从复制同步时出现以下错误:

        ERROR:No query specified

MariaDB [(none)]> show slave status\G;
*************************** 1. row ***************************
               Slave_IO_State: Connecting to master
                  Master_Host: 10.10.16.120
                  Master_User: root
                  Master_Port: 3306
.....................................................
  Replicate_Ignore_Server_Ids: 
             Master_Server_Id: 0
1 row in set (0.00 sec)

ERROR: No query specified

出现这个问题是因为在执行命令:show slave status\G时多加了一个(;)分号导致的,去掉分号错误就没有了!!!

MariaDB [(none)]> show slave status\G
*************************** 1. row ***************************
               Slave_IO_State: Connecting to master
                  Master_Host: 10.10.16.120
                  Master_User: root
.....................................................................
  Replicate_Ignore_Server_Ids: 
             Master_Server_Id: 0
1 row in set (0.00 sec)

猜你喜欢

转载自blog.csdn.net/young_foryou/article/details/86584534