How to Reset the MySQL Root Password
How to Reset the MySQL Root Password
http://dev.mysql.com/doc/refman/5.6/en/resetting-permissions.html
cat /etc/my.conf
...
[mysqld]
##add parameter##
skip-grant-tables <=without password login
skip-networking <=prevent remote clients from connecting
[root@dbdou02 tmp]# mysql -uroot -proot
mysql> FLUSH PRIVILEGES;
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('DOUdou123#');
cat /etc/my.conf
...
[mysqld]
##remove parameter##
#skip-grant-tables
#skip-networking
[root@dbdou02 ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.6.29 MySQL Community Server (GPL)
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
##MySQL root password reset is successful!##
########################################################################################
版權所有,文章允許轉載,但必須以連結方式註明源地址,否則追究法律責任!【QQ交流群:53993419】
QQ:14040928 E-mail:dbadoudou@163.com
本文連結: http://blog.itpub.net/26442936/viewspace-2055047/
********* 6年DBA工作經驗,尋求新工作機會 *********
########################################################################################
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26442936/viewspace-2055047/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- After mysql installation, we need to change the password of root as belowMySql
- mysql 1045, "Access denied for user 'root'@'localhost' (using password: NO)"MySqllocalhost
- MySQL:You must reset your password using ALTER USER statement before executing this statement.MySql
- FreeBSD on Raspberry PI root, freebsd account password
- MySQL系列:Docker安裝 MySQL提示錯誤:Access denied for user'root'@'localhost' (using password:yes)MySqlDockerlocalhost
- 解決Mysql:ERROR 1045 (28000):Access denied for user ‘root‘@‘localhost‘ (using password: NO)的方法MySqlErrorlocalhost
- MySQL 8.0.13 密碼問題 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)MySql密碼Errorlocalhost
- Navicat遠端連線MySQL 提示1045 - Access denied for user 'root'@'223.74.158.192'(using password:YES)MySql
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password:YES)Errorlocalhost
- mac os x 安裝mysql遇到 Access denied for user ‘root‘@‘localhost‘ (using password: YES)的解決方法MacMySqllocalhost
- 啟動報錯:Access denied for user 'root'@'localhost' (using password:YES)localhost
- 報錯”ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO)”Errorlocalhost
- java.sql.SQLException: Access denied for user ‘root‘@‘localhost‘ (using password: YES)JavaSQLExceptionlocalhost
- How Logs Work On MySQL With InnoDB TablesMySql
- Linux錯誤 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)LinuxErrorlocalhost
- vue專案中連線MySQL時,報錯ER_ACCESS_DENIED_ERROR: Access denied for user 'root'@'localhost' (using password:YES)VueMySqlErrorlocalhost
- MySQL 重置Root密碼MySql密碼
- SpringBoot中yml配置java.sql.SQLException: Access denied for user ‘root‘@‘localhost‘ (using password: NOSpring BootJavaSQLExceptionlocalhost
- MySQL 8.0 重置 root 密碼MySql密碼
- mysql 5.7忘記root密碼MySql密碼
- 修改Mysql root密碼的方法MySql密碼
- 細說 MySQL 之 MEM_ROOTMySql
- MySQL InnoDB Cluster – how to manage a split-brain situationMySqlAI
- mysql 8.0.11 以上版本修改root密碼MySql密碼
- ubuntu mysql Access denied for user root@localhostUbuntuMySqllocalhost
- MySQL的Root使用者密碼MySql密碼
- mysql忘了root密碼怎麼辦MySql密碼
- MYSQL5.7 ROOT密碼修改教程MySql密碼
- MySQL8.0的caching_sha2_password問題MySql
- phpmyadmin mysql8 加密方式 caching_sha2_passwordPHPMySql加密
- mysql誤刪root使用者或者忘記root密碼解決方法MySql密碼
- mysql5.7重置root密碼MySql密碼
- Ubuntu 如何重設 MySQL 的 root 密碼UbuntuMySql密碼
- 在Linux中,如何重置 mysql root 密碼?LinuxMySql密碼
- Ubuntu MySQL5.7設定root密碼UbuntuMySql密碼
- MySQL authentication plugin 'caching_sha2_password' cannot be loaded 問題MySqlPlugin
- Django中的函式make_password、set_password和check_passwordDjango函式
- JavaScript reset 事件JavaScript事件
- git reset 用法Git