现在的位置: 首页 > 综合 > 正文

MySql1045错误解决方法

2013年09月19日 ⁄ 综合 ⁄ 共 524字 ⁄ 字号 评论关闭
MySql 1045错误
MySql,安装完毕后,直接进入其bin文件夹下输入:
MySql
直接显示错误:
ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO)

开始以为是因为安装时候防火墙没有关闭导致安装不完全,删除重新安装,问题依旧.
Google之,发现原来是因为安装的时候设置了密码,cmd下进入的时候应该提供密码......

解决方法:
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

正常使用....

 

抱歉!评论已关闭.