MySQL 5.7 版本授权语句:

GRANT SELECT, PROCESS, SUPER, REPLICATION CLIENT, RELOAD ON *.* TO 'exporter'@'%' IDENTIFIED BY 'exporterpw';
flush privileges;

执行得到报错:

[2022-08-09 09:18:07] [42000][1064] 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 'exporterpw'' at line 1

昨天将 mysql 版本从 5.7.34 升级到了 8.0.3 ,应该是由于版本升级导致。

mysql 8.0 授权的语句:

create user 'exporter'@'%' identified by  'exporterpw' ;
grant SELECT, PROCESS, SUPER, REPLICATION CLIENT, RELOAD on *.* to 'exporter'@'%' with grant option ;
flush privileges;

MySQL 版本:'for the right syntax to use near 'identified by 'password' with grant option'相关推荐

  1. mysql版本:'for the right syntax to use near 'identified by 'password' with grant option'

    查询mysql具体版本 SELECT @@VERSION 问题分析:mysql版本8.0.13,在给新用户授权时,发生了变化: 1064 - You have an error in your SQL ...

  2. mysql版本:‘for the right syntax to use near ‘identified by ‘password‘ with grant option‘

    查询mysql具体版本 SELECT @@VERSION 问题分析:mysql版本8.0.13,在给新用户授权时,发生了变化: 1064 - You have an error in your SQL ...

  3. MySQL赋权报错:’the right syntax to use near ‘identified by ‘password‘ with grant option‘

    MySQL版本8.0.21,在给新用户授权时,执行如下语句: grant all privileges on *.* to 'root'@'%' identified by '123456' with ...

  4. syntax to use near ‘identified by “password“‘ at line 1

    ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your ...

  5. mysql远程连接权限grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘123456‘ with grant option语句报错

    mysql远程连接权限grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option语句报错 记录 ...

  6. 解决mysql的赋权操作之GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘123456‘ WITH GRANT OPTION问题

    一种情况 mysql的赋权操作:GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION: ...

  7. mysql 8.0.21 对用户授权报错 near ‘IDENTIFIED BY ‘123456‘ with grant option‘ at line 1

    mysql 8.0.21 对用户授权报错 near 'IDENTIFIED BY '123456' with grant option' at line 1 问题描述 mysql在创建用户,对用户授权 ...

  8. mysql GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION; ERROR 1819

    mysql> GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION; ERROR 1819 ...

  9. mysql8设置用户权限报错You have an error in your SQL syntax;right syntax to use near ‘IDENTIFIED BY

    mysql 8 设置用户权限命令和之前不一样 之前: grant all privileges on *.* to 'myuser'@'%' identified by 'mypassword' wi ...

最新文章

  1. python之请求报文对比(假定最多二维字典)
  2. boost::interprocess::windows_shared_memory用法的测试程序
  3. 怎么用c语言表示大整数的四则运算,用c语言编写大整数的四则运算,求大神
  4. python操作系统接口错误_Python os模块和sys模块 操作系统的各种接口
  5. oracle 11g 修改 sga,oracle 11g 调整SGA
  6. 线路板铜厚测试软件,厚铜线路板的铜厚是如何实现的
  7. Mybatis返回类型和接收参数为Map类型
  8. python中对文件的操作_Python对文件操作知识
  9. vector java 复制_Java代码性能优化的 40+ 细节
  10. llustrator 教程,如何在 Illustrator 中对齐内容?
  11. 通过标签向flash传递参数
  12. BOS物流项目注册流程图
  13. 基于html超市管理系统,超市管理系统后台模板
  14. 系分 02 软件工程
  15. 在线编辑word文档
  16. 中国教育和科研计算机网 吉林省,吉林大学—41核心节点—热烈庆祝中国教育和科研计算机网CERNET建设20周年—中国教育和科研计算机网CERNET...
  17. iOS 苹果授权登录(Sign in with Apple)/Apple登录/苹果登录集成教程
  18. HrbustOJ 1167 每种面值的货币要多少
  19. 自媒体/新媒体写作技巧
  20. Opengl ES系列学习--莫比乌斯带

热门文章

  1. 解决U盘变为2m大小的问题
  2. 百度/谷歌/微软/Facebook 人工智能发展方向
  3. 史上最简单-在 windows+python3.6 环境下创建自己的YOLOv3 [ VOC2007 ] 数据集
  4. jar文件打不开解决办法
  5. 分布式数据库使用逻辑卷管理存储之扩容
  6. 内存优化总结:ptmalloc、tcmalloc和jemalloc
  7. TCP协议面试10连问,网友直呼太强!
  8. 深度学习的开放数据集
  9. windows中新建任何后缀的文件(包括无后缀名)
  10. 互动直播系统源码 直播系统源码