grant all privileges on *.* to root@'%' identified by 'root';
语句如上
Linux下的MySQL授权其他机器访问报错:
mysql> grant all privileges on *.* to root@'%' identified by 'root';
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 'identified by 'root'' at line 1
mysql 版本为8.0.11
<p>grant all privileges on *.* to ‘root’@'%' identified by 'root1'; 加上引号</p>
好了,谢谢
https://www.cnblogs.com/xyabk/p/8967990.html,这篇文章会帮到你
mysql 版本为8.0.11
mysql> grant all privileges on *.* to 'root'@'%' identified by 'root';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the
<p>mysql8改变很大.不少语句的管理方法都不一样了,看看官方文档吧.</p>
讲真,不是必要,暂时不要升级到8
弄好了,谢谢
<p>设置远程访问(使用root密码):</p>
grant all privileges on *.* to 'root' @'%' identified by '123456';
flush privileges;
解决了,谢谢
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。