用户信息在 user 表中,你看下  这两个 数据库中是否  有一个 表 叫  user的?

解决方案 »

  1.   

    你应该弄一份MySql reference manual在手,2.9.3. Securing the Initial MySQL Accounts有详细的介绍,给这位兄弟摘录3种方法:
    1)To assign passwords using SET PASSWORD, connect to the server as root and issue two SET PASSWORD statements. Be sure to encrypt the password using the PASSWORD() function. For Windows, do this: shell> mysql -u root
    mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpwd');
    2)To assign passwords to the root accounts using mysqladmin, execute the following commands: shell> mysqladmin -u root password "newpwd"
    3)You can also use UPDATE to modify the user table directly. The following UPDATE statement assigns a password to both root accounts at once: shell> mysql -u root
    mysql> UPDATE mysql.user SET Password = PASSWORD('newpwd')
        ->     WHERE User = 'root';
    mysql> FLUSH PRIVILEGES;
      

  2.   

    mysql数据库有可能是删掉了,如果要修改root密码,还有没有其它方法?
      

  3.   

    急啊,现在我服务器上mysql的数据库密码还是为空,有什么方法修改呀?
      

  4.   

    在网上下个Mysql Administrator装一下,然后你就可以用Mysql Adminstrator给root设置密码了。