咨询热线:4006-75-4006
售前:9:00-23:30 备案:9:00-18:00 技术:7*24h
mysql中删除又想重建123用户,但是执行创建命令报错。
可以看到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'