- 博客(2)
- 收藏
- 关注
转载 mysql8.0创建(配置)新用户报错ERROR 1064 (42000)
刚开始是用旧版本来创建用户 mysql>GRANT ALL PRIVILEGES ON *.* TO username@localhost IDENTIFIED BY 'password' WITH GRANT OPTION; 会出现一下报错 ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the
2020-06-12 10:57:52
2397
转载 创建(配置)mysql8.0版本的超级管理员
一、登录MySQL: ①mysql -u root -p ②输入密码 二、创建新用户: ①创建新用户: 用户名:hzjtest 密码:password 注:%任意ip都能连接;本地连接:将%改成 localhost create user 'hzjtest'@'%' identified by 'password'; ②刷新权限 flush privileges; ③查询用户 select host,user,plugin,authentication_string.
2020-06-12 10:09:33
4430
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅