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

# update mysql.user setpassword=password("icpdb") where User="root";

# FLUSH PRIVILEGES;

# quit


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章