当前位置:网站首页>MySQL mistakenly deleted the root account and failed to log in
MySQL mistakenly deleted the root account and failed to log in
2022-07-03 06:55:00 【AquilaEAG】
Processing mysql When logging in remotely , False deletion mysql.user In the table root Record , Unable to log in after exiting
terms of settlement :
1、vim /etc/my.cnf
increase :
[mysqld]
skip-grant-tables
2、 restart mysql
systemctl restart mysqld
3、 Remedial treatment :
update user set Host='localhost',
select_priv='y',
insert_priv='y',
update_priv='y',
Alter_priv='y',
delete_priv='y',
create_priv='y',
drop_priv='y',
reload_priv='y',
shutdown_priv='y',
Process_priv='y',
file_priv='y',
grant_priv='y',
References_priv='y',
index_priv='y',
create_user_priv='y',
show_db_priv='y',
super_priv='y',
create_tmp_table_priv='y',
Lock_tables_priv='y',
execute_priv='y',
repl_slave_priv='y',
repl_client_priv='y',
create_view_priv='y',
show_view_priv='y',
create_routine_priv='y',
alter_routine_priv='y',
create_user_priv='y'
where user='root';
flush privileges;
4、 restart mysql
systemctl restart mysqld
5、MySQL5.7 Version password setting
MySQL The password you set must contain at least one uppercase letter 、 A small letter 、 A special symbol 、 A number ,
Password length must be at least 8 Characters
边栏推荐
- 2022年华东师范大学计科考研复试机试题-详细题解
- Error c2017: illegal escape sequence
- Application scenarios of Catalan number
- Understand software testing
- Winter vacation work of software engineering practice
- The essence of interview
- MySQL installation
- 2022 cisp-pte (III) command execution
- error C2017: 非法的转义序列
- In depth analysis of reentrantlock fair lock and unfair lock source code implementation
猜你喜欢

Paper notes vsalm literature review "a comprehensive survey of visual slam algorithms"
![[5g NR] UE registration process](/img/e3/f881d51fba03010de8c45ea480f3f0.png)
[5g NR] UE registration process

Summary of remote connection of MySQL

Example of joint use of ros+pytoch (semantic segmentation)

2022-06-23 VGMP-OSPF-域間安全策略-NAT策略(更新中)

Yolov2 learning and summary

Scroll view specifies the starting position of the scrolling element

Machine learning | simple but feature standardization methods that can improve the effect of the model (comparison and analysis of robustscaler, minmaxscaler, standardscaler)

Winter vacation work of software engineering practice

Arctic code vault contributor
随机推荐
Paper notes vsalm literature review "a comprehensive survey of visual slam algorithms"
UTC time, GMT time, CST time
Interface learning
Reading notes of "learn to ask questions"
mongodb
JMeter test result output
Unit test notes
Golang operation redis: write and read hash type data
Understand software testing
Selenium - by changing the window size, the width, height and length of different models will be different
vmware虚拟机C盘扩容
Inno Setup 制作安装包
[5g NR] UE registration process
HMS core helps baby bus show high-quality children's digital content to global developers
Operation principle of lua on C: Foundation
每日刷題記錄 (十一)
机器学习 | 简单但是能提升模型效果的特征标准化方法(RobustScaler、MinMaxScaler、StandardScaler 比较和解析)
Derivation of variance iteration formula
Search engine Bing Bing advanced search skills
Shim and Polyfill in [concept collection]