未给localhost root用户授权,新建一个localhost root用户,然后授权给他 create user 'root'@'localhost' identified by '你的密码'; grant all privileges on *.* to root@'localhost';
未给localhost root用户授权,新建一个localhost root用户,然后授权给他 create user 'root'@'localhost' identified by '你的密码'; grant all privileges on *.* to root@'localhost';