linux安裝MySQL出現ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
linux安裝mysql出現這個錯誤不用怕,
解決辦法: 重新設定root使用者密碼
# service 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'; 把newpassword改成自己的密碼
mysql> FLUSH PRIVILEGES;
mysql> quit
# service mysql restart
# mysql -uroot -p
Enter password: <輸入新設的密碼newpassword>
mysql>
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
就可以使用了
相關文章
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password:YES)Errorlocalhost
- Linux錯誤 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)LinuxErrorlocalhost
- 報錯”ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO)”Errorlocalhost
- 解決Mysql:ERROR 1045 (28000):Access denied for user ‘root‘@‘localhost‘ (using password: NO)的方法MySqlErrorlocalhost
- mysql 1045, "Access denied for user 'root'@'localhost' (using password: NO)"MySqllocalhost
- MySQL 8.0.13 密碼問題 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)MySql密碼Errorlocalhost
- MySQL系列:Docker安裝 MySQL提示錯誤:Access denied for user'root'@'localhost' (using password:yes)MySqlDockerlocalhost
- java.sql.SQLException: Access denied for user ‘root‘@‘localhost‘ (using password: YES)JavaSQLExceptionlocalhost
- 啟動報錯:Access denied for user 'root'@'localhost' (using password:YES)localhost
- Navicat遠端連線MySQL 提示1045 - Access denied for user 'root'@'223.74.158.192'(using password:YES)MySql
- mac os x 安裝mysql遇到 Access denied for user ‘root‘@‘localhost‘ (using password: YES)的解決方法MacMySqllocalhost
- vue專案中連線MySQL時,報錯ER_ACCESS_DENIED_ERROR: Access denied for user 'root'@'localhost' (using password:YES)VueMySqlErrorlocalhost
- Ubuntu18.04:mysql:ERROR 1698 (28000): Access denied for user ‘root‘@‘localhost‘UbuntuMySqlErrorlocalhost
- SQLSTATE[HY000] [1045] Access denied for user ‘root‘@‘localhost‘ (using password: YES)”錯誤的隱藏解決辦法SQLlocalhost
- MySQL使用普通使用者訪問返回ERROR 1698 (28000): Access denied for user 'root'@'localhost'MySqlErrorlocalhost
- SpringBoot中yml配置java.sql.SQLException: Access denied for user ‘root‘@‘localhost‘ (using password: NOSpring BootJavaSQLExceptionlocalhost
- ubuntu mysql Access denied for user root@localhostUbuntuMySqllocalhost
- Caused by: java.sql.SQLException: Access denied for user 'dell-pc'@'xxxxx' (using password: YES)JavaSQLException
- Access denied for user ‘root‘@‘localhost‘問題的解決localhost
- ERROR 1045 (28000): ProxySQL Error: 報錯ErrorSQL
- load data infile ERROR 1045 (28000)Error
- mysql登入報錯提示:ERROR 1045 (28000)的解決方法MySqlError
- 安裝kernel...src.rpm錯誤:warning: user mockbuild does not exist - using rootMockUI
- Mysql資料庫報ERROR 1045 (28000)報錯及MySQL忘記密碼找回MySql資料庫Error密碼
- Access denied for user 'default'@'%' to database 'shop'報錯Database
- Permission denied:user=xxx,access=WRITE,inode=xxx
- 【本人親測 已解決】044 - Access denied for user ‘root‘@‘%‘ to database ‘資料庫名稱‘Database資料庫
- MySQL:You must reset your password using ALTER USER statement before executing this statement.MySql
- 使用Mysql登入時,ERREORE 1045(28000) 解決方法MySql
- Ubuntu git pull 出現Permission denied ErrorUbuntuGitError
- Linux安裝mysql出現ERROR! The server quit without updating PID file問題解決LinuxMySqlErrorServerUI
- IOError: [Errno 13] Permission denied 解決:linux下python安裝並使用非root模組ErrorLinuxPython
- laravel mysql批量提交報Access denied 錯誤LaravelMySql
- hive建立分割槽表報錯AccessControlException Permission denied: user=NONE, access=WRITE, inodeHiveExceptionNone
- After mysql installation, we need to change the password of root as belowMySql
- mysqldump Got error: 1045MySqlGoError
- 安裝MySQL出現Job for mysqld.service failed because the control process exited with error codeMySqlAIError
- 安裝MYSQL5.5.61服務時,出現Install/Remove of the Service Denied!(拒絕安裝/刪除服務!)的問題!MySqlREM
- mysql登入遇到ERROR 1045問題解決方法MySqlError