Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution to forgetting the Mysql password

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

For operation and maintenance personnel, there are more and more application systems in charge and more databases to manage. How to solve the problem of forgetting Mysql super administrator password? We can do this by adding the--skip-grant-tables parameter to skip the permissions table.

Check Mysql's process number and force it to stop cooling.

kill -9 84131 83858

Start the database and add parameters to skip permissions so that you can access the database without a password.

Set a new password and refresh permissions for root.

After setting up, restart the server, this time no longer need to add--skip-grant-tables parameter.

After the database starts, you can log in with the account and password you just set.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report