您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

MySQL 8.0:check the manual that corresponds to your MySQL server version for the right syntax to use near 'identified by 'password'' at line 1

bubuko 2022/1/25 20:03:18 mysql 字数 931 阅读 667 来源 http://www.bubuko.com/infolist-5-1.html

【参考文章】:mysql 8.0.11 中使用 grant ... identified by 时 error 1064 near 'identified by '密码'' at line 1 1. 问题原因 MySQL 8.0 版本之后语法有更新,创建用户语句和权限修改语句需要分开执行 2. 解决 ...

【参考文章】:mysql 8.0.11 中使用 grant ... identified by 时 error 1064 near ‘identified by ‘密码‘‘ at line 1

1. 问题原因

  MySQL 8.0 版本之后语法有更新,创建用户语句和权限修改语句需要分开执行

2. 解决方法

  创建账户:create user ‘用户名‘@‘访问主机‘ identified by ‘密码‘;

  权限修改:grant 权限列表 on 数据库 to ‘用户名‘@‘访问主机‘ ;(修改权限时在后面加with grant option)

MySQL 8.0:check the manual that corresponds to your MySQL server version for the right syntax to use near 'identified by 'password'' at line 1

原文:https://www.cnblogs.com/virgosnail/p/12553668.html


如果您也喜欢它,动动您的小指点个赞吧

除非注明,文章均由 laddyq.com 整理发布,欢迎转载。

转载请注明:
链接:http://laddyq.com
来源:laddyq.com
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


联系我
置顶