1、停下你的mysql
   net stop mysql2、执行
   mysqld-nt --skip-grant-tables3、再能外一个shell中直接运行
   mysql.exe4、show databases;
   或添加或修改你的用户信息
或者两个方法一个是用 默认的 mysql 库代替原有的.
这样所有的用户权限就恢复到初始安装 MySQL 状态.
这个方法并不是最理想的.另一个就是 在启动时 加上 skip-grant-tables比如在 WIN32 下,修改 my.ini 文件,在 [mysqld] 节下加入.
Linux 下.可以修改 /etc/my.cnf 文件 .
[mysqld]
basedir = ....
datadir = ....
skip-grant-tables
...保存后.重新启动 MySQL 服务就行了.注意 skip-grant-tables 是禁用用户权限检查.任何登录都会有超级权限.
所以在修改了用户授权表后,
请删除上面所添加的东东,
然后重新启动服务.... 切切切...

解决方案 »

  1.   

    建议删除原来的授权用户,新建一个root用户!
      

  2.   

    if there are wrong with authorization user , with the command C:\mysql\bin>mysql
    it should not operate every database; it has not any relations with the root user!
    I can get in in the databases and can not operate test database, but mysql database, why? 
    and all other authorization user are invalidI have install it again , No any improvement happened.
      

  3.   

    The question have been Solved. 
    I have made a mistakes , there is already one version MySql was installed company the Apache installing In my computer , So when I install another version mysql , the previous Mysql-Server is still available, after I change the regedit of the MySql-Server's path, all is OK!
    thanks for your help!