我输入了这个命令进入mysql:
D:\Program Files\MySQL\bin>mysql -h localhost -u root 
但是只回应下面这句话,并且不能在输入任何字符了,就像死机了一样!请问是怎么回事?
Welcome to the MySQL monitor.  Commands end with ; or \g.

解决方案 »

  1.   

    D:\Program   Files\MySQL\bin> mysql   -h   localhost   -u   root   你这样应该是报错的~
      

  2.   

    D:\Program Files\MySQL\bin>mysql -u root -p    
      

  3.   

    我输入你的命令了,屏幕显示这些:D:\Program Files\MySQL\bin>mysql   -u   root   -p
    Enter password:
    Welcome to the MySQL monitor.  Commands end with ; or \g.我的数据库是没设置密码的
    到这里又无法再做任何事情了,只能关闭
      

  4.   

    是不是没有链接成功呢?我在odbc里测试连接是成功的,数据库在程序里也可以正常访问。。
      

  5.   

    用别的客户端软件登录吧,如phpadmin或ems等,可能是程序出错了
      

  6.   

    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 12
    Server version: 5.2.0-falcon-alpha-community-nt MySQL Community Server (GPL)Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
    这是完整的成功显示信息
      

  7.   

    D:\Program   Files\MySQL\bin>mysql --user=root
      

  8.   

    LZ应该是刚刚装的MySQL,要不然ROOT 的密码怎么是空的
      

  9.   

    不是吧,我记得数据库不设密码它是不会让你继续安装的~~~~
    不过我也不能通过命令行访问了,郁闷 提示error1045<28000>:Access denied for user'ODBC'@'localhost' (using password: N0)
    郁闷啊~~~