当前位置:网站首页>Error 1045 (28000) occurs when Linux logs in MySQL: access denied for user 'root' @ 'localhost' (using password: yes)
Error 1045 (28000) occurs when Linux logs in MySQL: access denied for user 'root' @ 'localhost' (using password: yes)
2022-07-03 05:37:00 【WA_ automata】
We need to bypass the password to login
Add such a jargon
[mysqld]
skip-grant-tables
Then restart the database , You can log in without secret
# Add do not add .service Suffixes are OK
start-up :systemctl start mysqld.service
close :systemctl stop mysqld.service
restart :systemctl restart mysqld.service
Check the status :systemctl status mysqld.service
At this time, login without password cannot be used alter user Statement first root Password field update Is an empty character
update mysql.user set authentication_string='' where user='root';
FLUSH PRIVILEGES;// Refresh the permissions
close mysql service , Comment out the configuration file skip-grant-tables, start-up mysql service
Change the password after entering again
ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';
边栏推荐
- Congratulations to musk and NADELLA on their election as academicians of the American Academy of engineering, and Zhang Hongjiang and Fang daining on their election as foreign academicians
- Talk about how to use p6spy for SQL monitoring
- Redis cannot connect remotely.
- 2022.7.2 simulation match
- 2022.6.30DAY591
- Final review (Day7)
- How to install and configure altaro VM backup for VMware vSphere
- 期末复习(day3)
- The request database reported an error: "could not extract resultset; SQL [n/a]; needed exception is org.hibernate.exception.sqlgram"
- (完美解决)matplotlib图例(legend)如何自由设置其位置
猜你喜欢
随机推荐
联想R7000显卡的拆卸与安装
【一起上水硕系列】Day 10
Export the altaro event log to a text file
Simpleitk learning notes
期末复习(DAY7)
BTC-密码学原理
About debugging the assignment of pagenum and PageSize of the formal parameter pageweb < T > (i.e. page encapsulation generic) in the controller
Redis 入門和數據類型講解
mysql启动报错:The server quit without updating PID file几种解决办法
Redis Introduction et explication des types de données
Principles of BTC cryptography
Why should we rewrite hashcode when we rewrite the equals method?
Primary school campus IP network broadcasting - Design of primary school IP digital broadcasting system based on campus LAN
2022.6.30DAY591
Go practice -- gorilla / websocket used by gorilla web Toolkit
Communication - how to be a good listener?
@Solutions to null pointer error caused by Autowired
(subplots usage) Matplotlib how to draw multiple subgraphs (axis field)
ansible防火墙firewalld设置
How do I migrate my altaro VM backup configuration to another machine?