解決Access denied for user 'root'@'localhost' (using

在linux系統登陸mysql的時候,遇到Access denied for user 'root'@'localhost' (using password:YES)報錯,登陸方式以下:mysql

mysql -uroot -p123456,試了不少次都不行,最後用下面的方法解決,可是仍是不知道什麼緣由,解決辦法:linux

mysql -uroot -p        登陸命令不要寫密碼,留空,而後一直回車就能夠了sql

相關文章
相關標籤/搜索