在cmd状态下输入 mysql - u root -p 密码   后提示
Enter password:这个时候输入任何的密码都是正确的,能够进入mysql> 状态,也能执行命令使用 Mysql administrator 在密码框中不输入密码,也能进入管理系统请帮助

解决方案 »

  1.   


    贴出你的 show grants;
      

  2.   

    贴select user,host,password from mysql.user;
      

  3.   

    系统用了很久了 在 windows server 2008 下,最近才发现的
      

  4.   

    my.ini 的内容,删除了注释
    [client]port= [mysql]default-character-set=gbk
    # SERVER SECTION
    [mysqld]
    skip-name-resolve
    skip-grant-tables# The TCP/IP Port the MySQL Server will listen on
    port=
    #Path to installation directory. All paths are usually resolved relative to this.
    basedir="X:/Web_Tools/MySql/"#Path to the database root
    datadir="X:\DataBase\MySql\data\"# The default character set that will be used when a new schema or table is
    # created and no character set is defined
    default-character-set=gbk# The default storage engine that will be used when create new tables when
    default-storage-engine=MYISAM
    max_connections=500query_cache_size=91Mtable_cache=1000tmp_table_size=54M
    thread_cache_size=23#*** MyISAM Specific optionsmyisam_max_sort_file_size=100Gmyisam_sort_buffer_size=54Mkey_buffer_size=283M# Size of the buffer used for doing full table scans of MyISAM tables.
    # Allocated per thread, if a full scan is needed.
    read_buffer_size=64K
    read_rnd_buffer_size=256Ksort_buffer_size=256K
    # and speed up some things.
    skip-innodbinnodb_additional_mem_pool_size=2Minnodb_flush_log_at_trx_commit=1innodb_log_buffer_size=1Minnodb_buffer_pool_size=8Minnodb_log_file_size=10Minnodb_thread_concurrency=18
      

  5.   

    skip-grant-tables把这行去掉  然后重启服务