咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

mysql删除用户后再次创建用户报错

2021-09-02 13:29:34 1852次

mysql删除用户后再次创建用户报错

mysql中删除又想重建123用户,但是执行创建命令报错。

image.png

可以看到mysql用户中并没有123,可是却无法创建,经查阅这是一个mysql官方bug:

This bug has been sitting on bugs.mysql.com since 2007 and this thread is mainly just a parroting of all those wrong answers even up to a year ago.


解决方法:

drop user 123@localhost;

flush privileges;

create user 123@localhost identified by 'password'


首页
最新活动
个人中心