新建一个帐户和密码,不要用root,这是基本安全准则,还有mysql有个客户端ip地址限制,用phpmyadmin查看一下权限。

解决方案 »

  1.   

    我是直接在控制台操作的,也遇到类似情况
    修改时把密码加密就可以了
    update mysql set password=PASSWORD('123456') where user='root';
      

  2.   

    现在进不去了,怎么建帐户和密码呀!还有如何用phpadmin查看一下权限?谢谢!
      

  3.   

    aibren(aibren) 我是在dos下操作的。我用了c:\mysql\bin\mysql 
                 mysql>update mysql set password=PASSWORD('123456') where user='root';
     
    可没有反应·
      

  4.   

    c:\mysql\bin>mysql -h localhost -u root -p
    mysql>use mysql;
    mysql>update user set password=password('123456') where user='root';
    mysql>flush privileges;
      

  5.   

    重新安装一便,把mysql装到另一文件夹,然后用新的mysql中的data中以"mysql"开头的表覆盖原表,注意要停止mysql服务操作。今后注意,修改密码不能用明文,要用md5加密,然后才能用php连接。
      

  6.   

    晕~~ 我也出现同样的问题~~ 郁闷中~~  期待中```````````````````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
      

  7.   

    MySQL服务器的版本和客户端的版本不兼容,重新编译PHP或者使用低版本的MySQL可以解决!
      

  8.   

    在终端输入
    # mysql -uroot -p123456
    这样你就可以进入了
      

  9.   

    对了,说明一下,-uroot和-p123456是不要空格的。
      

  10.   

    如下操作最可以了!
    注意:要用Password=PASSWORD('密码')的格式。
          加密后要执行FLUSH PRIVILEGES;才能生效!
    shell> mysql -u root mysql
    mysql> UPDATE user SET Password=PASSWORD('new_password')
               WHERE user='root';
    mysql> FLUSH PRIVILEGES;