Mysql授权用户数据库GRANT ON 数据库名.* TO 用户名@localhost identified BY ‘密码‘,报错ERROR 1064 (42000)
由于mysql版本不同,以前授权,使用的是:
GRANT all privileges ON 数据库名.* TO 用户名@localhost identified BY '密码';
但是会报错:
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 "xxxx"' at line 1
现在使用:
grant all privileges on 数据库.* to 用户名@localhost;
Mysql授权用户数据库GRANT ON 数据库名.* TO 用户名@localhost identified BY ‘密码‘,报错ERROR 1064 (42000)相关推荐
- 解决忘记密码报错ERROR 1044 (42000): Access denied for user ‘‘@‘localhost‘ to database ‘mysql‘的办法
由于长时间没用登录mysql忘记密码报错,ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql',导 ...
- 【MySQL】MySQL 执行 PROCEDURE ANALYSE 报错 ERROR 1064 (42000)
1.背景 MySQL 8.0.19 执行命令报错 mysql> SELECT * FROM sales PROCEDURE ANALYSE(10, 2000)\G; ERROR 1064 (42 ...
- mysql 42000 1064_mysql主从复制或其他操作报错ERROR 1064 (42000): You have an er
实验环境介绍: 在进行mysql主从复制配置从服务器时,系统报错 mysql> change master to master_host='192.168.109.149',master_use ...
- MySQL修改密码时,报错ERROR 1064 (42000)【新版MySQL修改密码命令有所变更】
相信大家都遇到过这种情况,在用 命令行 运行的 MySQL 中修改密码时,出现以下错误: ERROR 1064 (42000): You have an error in your SQL synta ...
- MySQL 执行 PROCEDURE ANALYSE 报错 ERROR 1064 (42000)
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server ...
- 已解决mysql报错ERROR 1049 (42000): Unknown database ‘数据库‘
已解决mysql报错ERROR 1049 (42000): Unknown database '数据库' 文章目录 报错问题 解决方法 福利 报错问题 粉丝群里面的一个小伙伴敲代码时发生了报错(当时他 ...
- 【报错记录】MySQL向数据库中导入txt文件报错ERROR 1148 (42000): The used command is not allowed with this MySQL version
背景 想将txt文件导入到数据库中,输入LOAD DATA LOCAL INFILE "D:\dbms_lab\department.txt" INTO TABLE DEPARTM ...
- mysql 5.7 1819_MySQL 5.7设置简单密码报错ERROR 1819 (HY000)
MySQL 5.7设置简单密码报错ERROR 1819 (HY000): Your password does not satisfy the current policy requirements. ...
- 修改mysql密码时遇见ERROR 1064 (42000) You have an error in your SQL syntax; check the manual that correspo
修改mysql密码时遇见ERROR 1064 (42000) You have an error in your SQL syntax; check the manual that correspon ...
最新文章
- 深入了解以太坊虚拟机第3部分——动态数据类型的表示方法
- 【 HRBUST - 1055】Single(模拟,dp,打表)(总结)
- 修改蓝牙耳机按键映射_喜欢玩游戏的不要错过了,五款高性能游戏蓝牙耳机推荐...
- 【Vue 3.0 新特性(三)】Vite 工具
- idea怎么运行eclipse的web项目_Apache Storm v2.0入门项目的开发、测试和运行(IDEA/Maven)...
- Jquery选择器大全汇总
- StringBoot接收XML参数,Java解析XML参数并封装
- android sqlitelog,如何解决Sqlitelog(13)语句中止在PhoneGap中的68错误android
- 项目管理的流程及生命周期
- C语言游戏开发闪屏解决办法--双缓冲技术
- 恶意软件沙盒规避技术与原理详解
- Spring Thymeleaf无法显示图片
- 关于勾股数的规律及证明
- IOS FaceID TouchID识别
- Zabbix主页应用介绍
- 故事版(storyBoard)-lllegal configuration connection object cannot have a prototype objct as
- DataInputStream.readUTF返回返回EOFException
- HTMLParser 使用详解
- nginx服务器报错502 bad gateway!
- 期货开户手续费的收取方式是什么?