MySQL的错误:No query specified
生活随笔
收集整理的這篇文章主要介紹了
MySQL的错误:No query specified
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
在做MySQL主從同步的時候通過:
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)此錯誤出現(xiàn)此錯誤的原因是因為執(zhí)行命令:show slave status\G;的時候,多加了一個“;”分號。
當(dāng)執(zhí)行命令的時候去掉分號,就不會出現(xiàn)此錯誤。
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的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: PMP考试技巧(必备)
- 下一篇: SpringBoot2 集成 xxl-j