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
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
mysq5.7中報(bào)錯(cuò)
執(zhí)行下面語句報(bào)錯(cuò)
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:先執(zhí)行
flush privileges;再執(zhí)行sql語句, 成功了,這是因?yàn)闄?quán)限設(shè)置了但還沒有刷新導(dǎo)致的
總結(jié)
以上是生活随笔為你收集整理的ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 至强 e3-1230 v3 内存:性能猛
- 下一篇: 内存超频,教你如何选择适合的内存条和BI