Home > Database > Mysql Tutorial > body text

MySQL ERROR 1045 (28000)的解决方法

WBOY
Release: 2016-06-07 16:14:33
Original
926 people have browsed it

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) # /etc/init.d/mysql stop # mysqld_safe --user=mysql --skip-grant-tables --skip-networking # mysql -u root mysql mysql UPDATE user SET Password=PASSWORD('new

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

# /etc/init.d/mysql stop
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
# mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root';
mysql> FLUSH PRIVILEGES;
mysql> quit

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
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!