MySQL 服务器在我尝试使用 'grant' 设置远程访问时崩溃
The MySQL server crashed when I try to set remote access using 'grant'
我输入以下命令:
mysql –u root -p
Grant all privileges on *.* to root@”%” identified by “rootpassword” with grant option;
Grant all privileges on mysitedb.* to root@localhost;
然后服务器崩溃了:
Could not establish database connection. Please check the username,
password and hostname in the config file, and if necessary set up the
appropriate MySQL user and privileges.
把grand语句改成下面一个,然后解决:
mysql –u root -p
Grant all privileges on *.* to root@”%” identified by “rootpassword” with grant option;
Grant all privileges on mysitedb.* to root@localhost identified by “rootpassword” with grant option;
我输入以下命令:
mysql –u root -p
Grant all privileges on *.* to root@”%” identified by “rootpassword” with grant option;
Grant all privileges on mysitedb.* to root@localhost;
然后服务器崩溃了:
Could not establish database connection. Please check the username, password and hostname in the config file, and if necessary set up the appropriate MySQL user and privileges.
把grand语句改成下面一个,然后解决:
mysql –u root -p
Grant all privileges on *.* to root@”%” identified by “rootpassword” with grant option;
Grant all privileges on mysitedb.* to root@localhost identified by “rootpassword” with grant option;