当前位置:网站首页>Common faults of MySQL database - forgetting database password
Common faults of MySQL database - forgetting database password
2022-06-26 13:18:00 【C chord~】
Catalog
1. Modify the configuration file
4. Use sql Statement change root password
5. Delete the statement just added manually in the configuration file
introduction :
In the production environment, we may forget to log in for some special reasons mysql Database root password , Let's solve this problem today .
One . The fault phenomenon
Forget root password , Unable to access database

Two . Trouble shooting
1. Modify the configuration file
vim /etc/my.cnf

2. Restart the service

3.mysql

4. Use sql Statement change root password

5. Delete the statement just added manually in the configuration file
vim /etc/my.cnf

6. Restart the service

3、 ... and . Trouble shooting

summary :
Forgotten password solutions are divided into 6 Step
- Changing configuration files ( Add password free login command )
- Restart the service
- Password free login database ( Enter the password and press enter )
- Use sql Statement change root password
- Enter the configuration file again ( Delete the command just added manually )
- Restart service again
边栏推荐
- Detailed explanation of C const: definition and use of C constant
- H5视频自动播放和循环播放
- 倍福PLC通过程序获取系统时间、本地时间、当前时区以及系统时间时区转换
- Basic configuration and test of Beifu twincat3 NCI in NC axis interface
- Electron official docs series: Examples
- 装饰器(Decorator)
- B - Bridging signals
- Mysql database explanation (6)
- Electron official docs series: Processes in Electron
- Opencv high speed download
猜你喜欢

倍福CX5130换卡对已有的授权文件转移操作

MySQL数据库常见故障——遗忘数据库密码

Appearance mode (facade)

Electron official docs series: Processes in Electron

8、【STM32】定时器(TIM)——中断、PWM、输入捕获实验(一文精通定时器)

IDC报告:百度智能云AI Cloud市场份额连续六次第一

Analysis of state transition diagram of Beifu NC axis

外观模式(Facade)

Arcpy - - utilisation de la fonction insertlayer (): ajout de calques dans un document de carte

Biff TwinCAT can quickly detect the physical connection and EtherCAT network through emergency scan
随机推荐
To solve the difficulties of small and medium-sized enterprises, Baidu AI Cloud makes an example
D - skiing
MariaDB study notes
Processsing function random
J - Wooden Sticks poj 1065
Adapter mode
Electron official docs series: Examples
Beifu PLC based on NT_ Shutdown to realize automatic shutdown and restart of controller
Electron official docs series: Testing And Debugging
倍福PLC基于CX5130实现数据的断电保持
享元模式(Flyweight)
HDU 5860
8、【STM32】定时器(TIM)——中断、PWM、输入捕获实验(一文精通定时器)
倍福通过CTU和TON实现时间片大小和数量的控制
Typescript
HDU 3555 Bomb
偶言佳句,孤芳自赏
倍福TwinCAT3 NCI在NC轴界面中的基本配置和测试
G - Cow Bowling
I - Dollar Dayz