当前位置:网站首页>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
边栏推荐
- In depth analysis of reentrantlock fair lock and unfair lock source code implementation
- Winter vacation work of software engineering practice
- Liang Ning: 30 lectures on brain map notes for growth thinking
- Opencv mouse and keyboard events
- How does the insurance company check hypertension?
- [C /vb.net] convert PDF to svg/image, svg/image to PDF
- Software testing learning - day 3
- Scroll view specifies the starting position of the scrolling element
- 多个全局异常处理类,怎么规定执行顺序
- [vscode - vehicle plug-in reports an error] cannot find module 'xxx' or its corresponding type declarations Vetur(2307)
猜你喜欢

Golang operation redis: write and read hash type data

Yolov2 learning and summary

My 2020 summary "don't love the past, indulge in moving forward"

Asynchronous programming: async/await in asp Net

Jmeter+influxdb+grafana of performance tools to create visual real-time monitoring of pressure measurement -- problem record

vmware虚拟机C盘扩容

每日刷题记录 (十一)

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

Yolov3 learning notes

Daily question brushing record (11)
随机推荐
【开源项目推荐-ColugoMum】这群本科生基于国产深度学习框架PaddlePadddle开源了零售行业解决方案
Laravel Web框架
Personally design a highly concurrent seckill system
How can the server set up multiple interfaces and install IIS? Tiantian gives you the answer!
【code】偶尔取值、判空、查表、验证等
C2338 Cannot format an argument. To make type T formattable provide a formatter<T> specialization:
Jenkins
JS date comparison
Unit test framework + Test Suite
SQL implementation merges multiple rows of records into one row
The difference between CONDA and pip
100000 bonus is divided up. Come and meet the "sister who braves the wind and waves" among the winners
Thoughts in Starbucks
Operation principle of lua on C: Foundation
EasyExcel
golang操作redis:写入、读取hash类型数据
dataworks自定義函數開發環境搭建
Numerical method for solving optimal control problem (I) -- gradient method
Redis command
10000小時定律不會讓你成為編程大師,但至少是個好的起點