查询mysql具体版本

SELECT @@VERSION

问题分析:mysql版本8.0.13,在给新用户授权时,发生了变化:

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  'password' with grant option' at line 5, Time: 0.000000s

出错的语句:

grant all privileges on *.* to 'root'@'1ocalhost' identified by  'password' with grant option

修正后的语句:分开三次执行

#创建账户
create user 'root'@'1ocalhost' identified by  'password'#赋予权限,with grant option这个选项表示该用户可以将自己拥有的权限授权给别人
grant all privileges on *.* to 'root'@'1ocalhost' with grant option#改密码&授权超用户,flush privileges 命令本质上的作用是将当前user和privilige表中的用户信息/权限设置从mysql库(MySQL数据库的内置库)中提取到内存里
flush privileges;

原因分析 :此版的的mysql版本把将创建账户和赋予权限分开了。

创建账户::create user ‘用户名’@‘访问主机’ identified by ‘密码’;
赋予权限:grant 权限列表 on 数据库 to ‘用户名’@‘访问主机’ ;
with grant option这个选项表示该用户可以将自己拥有的权限授权给别人

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 5.7 版本授权语句: GRANT SELECT, PROCESS, SUPER, REPLICATION CLIENT, RELOAD ON *.* TO 'exporter'@'%' ...

  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. LR常见的报错处理方法
  2. 刷新4项文档智能任务纪录,百度TextMind打造ERNIE-Layout登顶文档智能权威榜单
  3. 使用WebEx录制视频并转换为MP4
  4. python【蓝桥杯vip练习题库】ADV-281特等奖学金
  5. 17年9月计算机二级试题,9月计算机二级MSOffice练习试题
  6. Java 用float时,数字后面加f,这样是为什么?
  7. tensorflow学习(2.网络模型的存储以及提取)
  8. html5行级标签,8、html5哪些标签时块级、行内、行内块?2021-01-30
  9. 中文NER任务实验小结:BERT-MRC的再优化
  10. thinkphp如果表名有下划线需要用Model
  11. java 异常对象_在java中的异常处理中的异常对象是什么
  12. java 小数点保留_Java小数点位数保留
  13. 一篇文章彻底搞懂Android事件分发机制
  14. 在线民宿满意度测评项目[开源]
  15. 详解linux netstat输出的网络连接状态信息
  16. 云锵基金 2019 年 03 月简报
  17. Pointer Networks简介及其应用
  18. 鼠标图标怎么自定义_苹果ios14怎么自定义图标 图标位置自由排列换风格教程
  19. 小灰的基金,总算是回血一波。。。
  20. 梦幻模拟战手游服务器维护,梦幻模拟战手游11月21日更新公告 执行者降临限时召唤开启[多图]...

热门文章

  1. java pdf 水印_Java在PDF中添加水印(文本/图片水印)效果
  2. pdf怎样添加水印?添加图片水印的方法
  3. linux录音跳过无效数据,录音器点击“开始录制”没有反应怎么解决?
  4. java毕设项目教师教学质量评估系统(附源码)
  5. [附源码]Node.js计算机毕业设计成都驰聘健身俱乐部管理系统Express
  6. 终极版---如何区别浏览器刷新和关闭
  7. Java程序员必背英语单词70个
  8. 系统架构设计师论文范文-论基于DSSA的软件架构设计与应用
  9. Python中将dataframe转换为字典
  10. 设置局域网中电脑磁盘共享