解决方法:
CREATE USER 'root'@'localhost' IDENTIFIED BY 'password'; grant all privileges on *.* to 'root'@'localhost' identified by 'password' with grant option;
可以讲password,改成你要设置的密码