ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
生活随笔
收集整理的這篇文章主要介紹了
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
mysq5.7中報錯
執行下面語句報錯
mysql> grant replication slave on . to ‘myslave’@‘192.168.136.%’ identified by ‘123456’;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘databases zhang’ at line 1
1:把skip-grant-tables語句從[root@localhost ~]# vim /etc/my.cnf中刪除,用密碼登錄就可以
2:先執行
flush privileges;再執行sql語句, 成功了,這是因為權限設置了但還沒有刷新導致的
總結
以上是生活随笔為你收集整理的ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 至强 e3-1230 v3 内存:性能猛
- 下一篇: linux cmake编译源码,linu