mysql5.0安装后不可以连接

来源:百度知道 编辑:UC知道 时间:2024/05/13 08:57:52
我用CMD,连接出现以下情况
d:\mysql\bin>mysql -u123456 -p123456
ERROR 1045: Access denied for user: '123456@localhost' <Using password: YES>
请问下这样的情况是怎么回事,要怎么解决谢谢!

解决方法如下:
解决方法:
Step 1:

C:\Program Files\MySQL\MySQL Server 5.0\bin>mysql -u root -p
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 28 to server version: 5.0.24a-community-nt

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

Step 2:
C:\Program Files\MySQL\MySQL Server 5.0\bin>mysql
mysql>status