爱玩科技网
您的当前位置:首页Accessdeniedforuser'root'@&#

Accessdeniedforuser'root'@&#

来源:爱玩科技网


$mysqld --skip-grant-tables $ mysql -u root mysql$mysql UPDATE user SET Password=PASSWORD('my_password') where USER='root';$mysql FLUSH PRIVILEGES; $ /etc/init.d/mysql restart $ mysql -u root -pEnter password: my_password 在执行命令前,kil

$mysqld --skip-grant-tables
$ mysql -u root mysql
$mysql> UPDATE user SET Password=PASSWORD('my_password') where USER='root';
$mysql> FLUSH PRIVILEGES;
$ /etc/init.d/mysql restart
$ mysql -u root -p
Enter password: my_password
在执行命令前,kill掉mysql的进程
显示全文