当前位置:网站首页>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
边栏推荐
- Tool class static method calls @autowired injected service
- JMeter test result output
- Abstract learning
- Example of joint use of ros+pytoch (semantic segmentation)
- Software testing assignment - the next day
- IC_ EDA_ All virtual machine (rich Edition): questasim, vivado, VCs, Verdi, DC, Pt, spyglass, icc2, synthesize, innovative, ic617, mmsim, process library
- Reading notes of "learn to ask questions"
- DBNet:具有可微分二值化的实时场景文本检测
- VMware virtual machine C disk expansion
- Winter vacation work of software engineering practice
猜你喜欢

Win 10 find the port and close the port

Realize PDF to picture conversion with C #

Reading notes of "learn to ask questions"
![[Fiddler actual operation] how to use Fiddler to capture packets on Apple Mobile Phones](/img/d0/850e095a43610366d6144b2471f3f7.jpg)
[Fiddler actual operation] how to use Fiddler to capture packets on Apple Mobile Phones

Summary of the design and implementation of the weapon system similar to the paladin of vitality

The list of "I'm crazy about open source" was released in the first week, with 160 developers on the list

Paper notes vsalm literature review "a comprehensive survey of visual slam algorithms"

These two mosquito repellent ingredients are harmful to babies. Families with babies should pay attention to choosing mosquito repellent products

Chapter 8. MapReduce production experience

golang操作redis:写入、读取hash类型数据
随机推荐
机械观和系统观的科学思维方式各有什么特点和作用
Laravel框架 踩坑(一)
机器学习 | 简单但是能提升模型效果的特征标准化方法(RobustScaler、MinMaxScaler、StandardScaler 比较和解析)
Understand software testing
On the practice of performance optimization and stability guarantee
[Code] occasionally take values, judge blanks, look up tables, verify, etc
Stream stream
Practice of enterprise ab/testing platform
Unit test notes
UTC时间、GMT时间、CST时间
Abstract learning
100000 bonus is divided up. Come and meet the "sister who braves the wind and waves" among the winners
dataworks自定義函數開發環境搭建
Condition annotation in uni-app realizes cross segment compatibility, navigation jump and parameter transfer, component creation and use, and life cycle function
Pits encountered in the use of El checkbox group
2021 year end summary
爬虫代码基础教学
Simple understanding of bubble sorting
[C /vb.net] convert PDF to svg/image, svg/image to PDF
How to plan well?