解决办法:
1.在终端上进入数据库的命令行:
mysql -u root -p 在输入密码后进入mysql的命令行
2.接着输入命令下面两条命令:
grant all privileges on *.* to 'root'@'localhost' identified by '密码' with grant option;
flush privileges;
3.重启电脑问题解决
解决办法:
1.在终端上进入数据库的命令行:
mysql -u root -p 在输入密码后进入mysql的命令行
2.接着输入命令下面两条命令:
grant all privileges on *.* to 'root'@'localhost' identified by '密码' with grant option;
flush privileges;
3.重启电脑问题解决