mysql權限登錄問題:1045

mysql中使用root用戶登錄出現:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 錯誤產生的原因是root用戶沒有localhost登錄的權限,修改 /etc/my.cnf數據庫配置文件,在[mysqld]選項中添加:skip-grant-tables    使用安全模式登錄
相關文章
相關標籤/搜索