create user aa@localhost identified by 'password';
flush privileges;
刪除用戶的時候:
drop user aa@localhost;(不要加引號)
flush privileges;
如果用 delete from user? where user='aa';刪除用戶,在重新新增用戶時會出現:
’mysql--operation create user failed‘
的錯誤。
create user aa@localhost identified by 'password';
flush privileges;
刪除用戶的時候:
drop user aa@localhost;(不要加引號)
flush privileges;
如果用 delete from user? where user='aa';刪除用戶,在重新新增用戶時會出現:
’mysql--operation create user failed‘
的錯誤。