当前位置:网站首页>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
边栏推荐
- Troubleshooting of high CPU load but low CPU usage
- Asynchronous programming: async/await in asp Net
- IC_ EDA_ All virtual machine (rich Edition): questasim, vivado, VCs, Verdi, DC, Pt, spyglass, icc2, synthesize, innovative, ic617, mmsim, process library
- [day15] introduce the features, advantages and disadvantages of promise, and how to implement it internally. Implement promise by hand
- Use the jvisualvm tool ----- tocmat to start JMX monitoring
- Jmeter+influxdb+grafana of performance tools to create visual real-time monitoring of pressure measurement -- problem record
- MySQL transaction rollback, error points record
- Software testing assignment - day 1
- golang操作redis:写入、读取kv数据
- [untitled] 5 self use history
猜你喜欢

vmware虚拟机C盘扩容

这两种驱蚊成份对宝宝有害,有宝宝的家庭,选购驱蚊产品要注意

(翻译)异步编程:Async/Await在ASP.NET中的介绍

每日刷题记录 (十一)

Numerical method for solving optimal control problem (I) -- gradient method

IC_EDA_ALL虚拟机(丰富版):questasim、vivado、vcs、verdi、dc、pt、spyglass、icc2、synplify、INCISIVE、IC617、MMSIM、工艺库

Software testing assignment - day 1

2022-06-23 vgmp OSPF inter domain security policy NAT policy (under update)

Arctic code vault contributor

Paper notes vsalm literature review "a comprehensive survey of visual slam algorithms"
随机推荐
centos php7.3安装redis扩展
Resttemplate configuration use
Stream stream
Machine learning | simple but feature standardization methods that can improve the effect of the model (comparison and analysis of robustscaler, minmaxscaler, standardscaler)
2022 East China Normal University postgraduate entrance examination machine test questions - detailed solution
Jenkins
golang操作redis:写入、读取kv数据
JMeter test result output
卡特兰数(Catalan)的应用场景
2022-06-23 vgmp OSPF inter domain security policy NAT policy (under update)
Unittest attempt
C2338 Cannot format an argument. To make type T formattable provide a formatter<T> specialization:
mysql误删root账户导致无法登录
UTC time, GMT time, CST time
[attribute comparison] defer and async
Liang Ning: 30 lectures on brain map notes for growth thinking
Basic teaching of crawler code
2022 cisp-pte (III) command execution
Software testing learning - the next day
Abstract learning