ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: N

来源:百度知道 编辑:UC知道 时间:2024/05/28 23:53:33

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

正常使用....

--------------------------------------------------

我的系统是ubuntu6.06,最近新装好的mysql在进入mysql工具时,总是有错误提示:
# mysql -uroot -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

使用网上介绍的方法修改root用户的密码:
# mysqladmin -uroot -p password 'newpassword'
Enter password:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied