centos mysql 数据库登录错误
天蓬老师
天蓬老师 2017-04-17 13:12:57
0
3
741

mysql -u root -p
ERROR 1045 (28000 ): Access denied for user 'root'@'localhost' (using password: YES )

mysql
ERROR 1045 (28000 ): Access denied for user 'root'@'localhost' (using password: NO )

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(3)
小葫芦

mysql -u root
Just press enter without password

阿神

Enter the password (I encountered this before and didn’t study it carefully, but entering the password seems to solve the problem

大家讲道理

You can find out this kind of problem just by Baidu.
But since I have answered it, I will explain it to you in detail.
1. Check whether the database password is set;
2. Have the password been changed since the database was started? If the password has been changed, flush privileges;
3. How many MySQLs have been installed? Log in with the absolute path: /path/to/mysql/bin/mysql -u username -p and press Enter. If you set a password, enter the password and press Enter. If you do not set a password, just press Enter to log in.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!