1.选择mysql库
use mysql;
2.修改user表
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'IDENTIFIED BY '123456' WITH GRANT OPTION;
3.刷新
flush privileges;
1.选择mysql库
use mysql;
2.修改user表
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'IDENTIFIED BY '123456' WITH GRANT OPTION;
3.刷新
flush privileges;