贴一下你的命令结果。比如这样C:\Program Files\MySQL\MySQL Server 5.1\bin>mysql -u root -p123 csdn Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.1.33-community-log MySQL Community Server (GPL)Type 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql> [code=BatchFile]C:\Program Files\MySQL\MySQL Server 5.1\bin>mysql -u root -p123sadf ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y ES)[/code]
Can't open named pipe to host: . pipe : mysql(2) 我提示这个
还有前边的是“ERROR 2017 (HY000)"
C:\Program Files\MySQL\MySQL Server 5.0\bin>mysql -u root -p sa Enter password:**然后就出这样了
直接把密码放在后面,贴出完整的信息。mysql -u root -pxxxxxx sa
老大,我范了个错误,服务停止了,我启动后再次试了一下, 命令C:\Program Files\MySQL\MySQL Server 5.0\bin>mysql -u root -psa后后就是空的,没有任何反应
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.33-community-log MySQL Community Server (GPL)Type 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql>
[code=BatchFile]C:\Program Files\MySQL\MySQL Server 5.1\bin>mysql -u root -p123sadf
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y
ES)[/code]
Can't open named pipe to host: . pipe : mysql(2)
我提示这个
Enter password:**然后就出这样了
命令C:\Program Files\MySQL\MySQL Server 5.0\bin>mysql -u root -psa后后就是空的,没有任何反应
你的密码是 sa ?