晕~~ 我也出现同样的问题~~ 郁闷中~~ 期待中```````````````````Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in D:\Server\hy\config.php on line 8
MySQL服务器的版本和客户端的版本不兼容,重新编译PHP或者使用低版本的MySQL可以解决!
在终端输入 # mysql -uroot -p123456 这样你就可以进入了
对了,说明一下,-uroot和-p123456是不要空格的。
如下操作最可以了! 注意:要用Password=PASSWORD('密码')的格式。 加密后要执行FLUSH PRIVILEGES;才能生效! shell> mysql -u root mysql mysql> UPDATE user SET Password=PASSWORD('new_password') WHERE user='root'; mysql> FLUSH PRIVILEGES;
修改时把密码加密就可以了
update mysql set password=PASSWORD('123456') where user='root';
mysql>update mysql set password=PASSWORD('123456') where user='root';
可没有反应·
mysql>use mysql;
mysql>update user set password=password('123456') where user='root';
mysql>flush privileges;
# mysql -uroot -p123456
这样你就可以进入了
注意:要用Password=PASSWORD('密码')的格式。
加密后要执行FLUSH PRIVILEGES;才能生效!
shell> mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('new_password')
WHERE user='root';
mysql> FLUSH PRIVILEGES;