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 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'@'172.16.10.203' identified by 'password' with grant option
修正后的语句:分开三次执行
#创建账户
create user 'root'@'172.16.10.203' identified by 'password'#赋予权限,with grant option这个选项表示该用户可以将自己拥有的权限授权给别人
grant all privileges on *.* to 'root'@'172.16.10.203' 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'相关推荐
- 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 ...
- 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'@'%' ...
- 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 ...
- 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 ...
- 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语句报错 记录 ...
- 解决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: ...
- 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在创建用户,对用户授权 ...
- 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 ...
- 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 ...
最新文章
- 算法课题(一) 贪心算法
- r语言做断轴_R语言用nls做非线性回归以及函数模型的参数估计
- 第四章 - 数据运算
- lisp 读取样条曲线座标点_MATLAB插值绘制曲线
- flutter视频播放videoplayer与chewie
- 区块链+各行业应用案例
- oracle笔记整理14——性能调优之oracle执行计划
- 序列的傅里叶变换MATLAB实现
- 为什么没有工作经验的程序员很难找工作?
- 字体使用的侵权是如何判定的?
- 到底什么是IaaS、PaaS、SaaS?
- 数字门店要怎么运营,才能助力线下门店降本增效?
- python123查找指定字符输入m_Pyton学习—字符串
- php开发人工智能,php可以开发人工智能吗
- STM32使用ADC+DMA进行多通道模拟量采集 (踩坑及傻瓜式解析)
- 零基础学 MySQL
- av_rescale_q_rnd”: 不能将参数 4 从“int”转换为“AVRounding” 1 转换为枚举
- checkbox选中和不选中 jqu_jquery checkbox怎么选中和不选中?
- python数据分析之DataFrame的数据抽取
- 数字图像处理 关于matlab的图像变换
热门文章
- Adobe Audition软件:录音按钮灰色,导致无法录音
- 论文阅读03:深度文本匹配综述
- 智慧养老之社区养老管理系统
- 自定义异常类NegativeException
- 如何隐藏CAD布局视口线框?
- 调试笔记 — Redis 消息队列发布信息被消费者重复订阅多次牵扯到的 Tomcat 配置问题 [#00001]
- 计算机图形学实验(OpenGL实现):Spinning Pinwheel
- 清华提出RepMLP:FC“内卷”,卷出性能!
- 【精华】强烈推荐你使用去中心化以太坊钱包 - ETH最安全的钱包
- Centos7安装minio文件服务器