当前位置:网站首页>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
边栏推荐
- The 10000 hour rule won't make you a master programmer, but at least it's a good starting point
- Example of joint use of ros+pytoch (semantic segmentation)
- Laravel Web框架
- Numerical method for solving optimal control problem (I) -- gradient method
- Pytorch exercise items
- POI excel percentage
- Condition annotation in uni-app realizes cross segment compatibility, navigation jump and parameter transfer, component creation and use, and life cycle function
- Integration test practice (1) theoretical basis
- 熊市里的大机构压力倍增,灰度、Tether、微策略等巨鲸会不会成为'巨雷'?
- Machine learning | simple but feature standardization methods that can improve the effect of the model (comparison and analysis of robustscaler, minmaxscaler, standardscaler)
猜你喜欢
Personally design a highly concurrent seckill system
On the practice of performance optimization and stability guarantee
[open source project recommendation colugomum] this group of undergraduates open source retail industry solutions based on the domestic deep learning framework paddlepadddle
[5g NR] UE registration process
Summary of remote connection of MySQL
[vscode - vehicle plug-in reports an error] cannot find module 'xxx' or its corresponding type declarations Vetur(2307)
Pits encountered in the use of El checkbox group
Jenkins
熊市里的大机构压力倍增,灰度、Tether、微策略等巨鲸会不会成为'巨雷'?
My 2020 summary "don't love the past, indulge in moving forward"
随机推荐
【无标题】
Modify MySQL password
Derivation of variance iteration formula
机械观和系统观的科学思维方式各有什么特点和作用
C2338 Cannot format an argument. To make type T formattable provide a formatter<T> specialization:
2022-06-23 VGMP-OSPF-域間安全策略-NAT策略(更新中)
Software testing learning - day 3
How does the insurance company check hypertension?
Software testing assignment - the next day
“我为开源打榜狂”第一周榜单公布,160位开发者上榜
Resttemplate configuration use
【code】if (list != null && list.size() > 0)优化,集合判空实现方式
Win 10 find the port and close the port
Simple password lock
多个全局异常处理类,怎么规定执行顺序
RestHighLevelClient获取某个索引的mapping
How to migrate or replicate VMware virtual machine systems
熊市里的大机构压力倍增,灰度、Tether、微策略等巨鲸会不会成为'巨雷'?
[5g NR] UE registration process
IC_ EDA_ All virtual machine (rich Edition): questasim, vivado, VCs, Verdi, DC, Pt, spyglass, icc2, synthesize, innovative, ic617, mmsim, process library