当前位置:网站首页>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
边栏推荐
- 机器学习 | 简单但是能提升模型效果的特征标准化方法(RobustScaler、MinMaxScaler、StandardScaler 比较和解析)
- Integration test practice (1) theoretical basis
- 服务器如何设置多界面和装IIS呢?甜甜给你解答!
- Notes on the core knowledge of Domain Driven Design DDD
- SSH link remote server and local display of remote graphical interface
- Yolov2 learning and summary
- Numerical method for solving optimal control problem (I) -- gradient method
- Pytest -- write and manage test cases
- [attribute comparison] defer and async
- Inno Setup 制作安装包
猜你喜欢
Daily question brushing record (11)
每日刷題記錄 (十一)
Yolov3 learning notes
2022 - 06 - 23 vgmp - OSPF - Inter - Domain Security Policy - nat Policy (Update)
2022 cisp-pte (III) command execution
JMeter JSON extractor extracts two parameters at the same time
利用C#实现Pdf转图片
2022年华东师范大学计科考研复试机试题-详细题解
IC_EDA_ALL虚拟机(丰富版):questasim、vivado、vcs、verdi、dc、pt、spyglass、icc2、synplify、INCISIVE、IC617、MMSIM、工艺库
Scroll view specifies the starting position of the scrolling element
随机推荐
Yolov2 learning and summary
2022 - 06 - 23 vgmp - OSPF - Inter - Domain Security Policy - nat Policy (Update)
Code management tools
C2338 Cannot format an argument. To make type T formattable provide a formatter<T> specialization:
UTC time, GMT time, CST time
Derivation of variance iteration formula
Jenkins
Journal quotidien des questions (11)
HMS core helps baby bus show high-quality children's digital content to global developers
[untitled] 8 simplified address book
Selenium - by changing the window size, the width, height and length of different models will be different
Thoughts in Starbucks
Daily question brushing record (11)
(翻译)异步编程:Async/Await在ASP.NET中的介绍
服务器如何设置多界面和装IIS呢?甜甜给你解答!
IC_ EDA_ All virtual machine (rich Edition): questasim, vivado, VCs, Verdi, DC, Pt, spyglass, icc2, synthesize, innovative, ic617, mmsim, process library
Golang operation redis: write and read hash type data
Summary of the design and implementation of the weapon system similar to the paladin of vitality
2022-06-23 VGMP-OSPF-域间安全策略-NAT策略(更新中)
Interface learning