MySQL的错误:No query specified
生活随笔
收集整理的這篇文章主要介紹了
MySQL的错误:No query specified
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
在做MySQL主從同步的時(shí)候通過:
mysql> show slave status\G; *************************** 1. row ***************************Slave_IO_State: Waiting for master to send eventMaster_Host: 192.168.18.139Master_User: repMaster_Port: 3307Connect_Retry: 60Master_Log_File: mysql-bin.000001Read_Master_Log_Pos: 107Relay_Log_File: relay-bin.000002Relay_Log_Pos: 253Relay_Master_Log_File: mysql-bin.000001Slave_IO_Running: YesSlave_SQL_Running: YesSeconds_Behind_Master: 0 Master_SSL_Verify_Server_Cert: NoMaster_Server_Id: 3 1 row in set (0.00 sec)ERROR: No query specified ==>出現(xiàn)此錯(cuò)誤出現(xiàn)此錯(cuò)誤的原因是因?yàn)閳?zhí)行命令:show slave status\G;的時(shí)候,多加了一個(gè)“;”分號(hào)。
當(dāng)執(zhí)行命令的時(shí)候去掉分號(hào),就不會(huì)出現(xiàn)此錯(cuò)誤。
ysql> show slave status\G *************************** 1. row ***************************Slave_IO_State: Waiting for master to send eventMaster_Host: 192.168.18.139Master_User: repMaster_Port: 3307Connect_Retry: 60Master_Log_File: mysql-bin.000001Read_Master_Log_Pos: 107Relay_Log_File: relay-bin.000002Relay_Log_Pos: 253Relay_Master_Log_File: mysql-bin.000001Slave_IO_Running: YesSlave_SQL_Running: YesSeconds_Behind_Master: 0 1 row in set (0.00 sec)mysql>總結(jié)
以上是生活随笔為你收集整理的MySQL的错误:No query specified的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: PMP考试技巧(必备)
- 下一篇: linux cmake编译源码,linu