- 博客(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 2173
转载 创建(配置)mysql8.0版本的超级管理员
一、登录MySQL:①mysql -u root -p②输入密码二、创建新用户:①创建新用户:用户名:hzjtest密码:password注:%任意ip都能连接;本地连接:将%改成 localhostcreate user 'hzjtest'@'%' identified by 'password';②刷新权限flush privileges;③查询用户select host,user,plugin,authentication_string.
2020-06-12 10:09:33 3769 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人