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

Crack the local mysql username and password (transfer)

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

Crack the local mysql username and password (transfer) [@ more@] Windows:

1. Log in to the system with the system administrator.

2. Stop the MySQL service.

3. Enter the command window, and then enter the installation directory of MySQL. For example, my installation directory is c:mysql, and enter C:mysqlin.

4. Skip permission check to start MySQL, c:mysqlin > mysqld-nt-- skip-grant-tables

5. Reopen a window, enter the c:mysqlin directory, and set the new password for root

C:mysqlin > mysqladmin-u root flush-privileges password "newpassword"

C:mysqlin > mysqladmin-u root-p shutdown

Replace newpassword with the password of the root you want to use, and the second command prompts you to enter the new password, repeating the password entered by the first command.

6. Stop MySQL Server and start Mysql in normal mode

7. You can link to Mysql with your new password.

Unix and Linux:

1. Log in to the system with root or the user running mysqld

2. End the process of mysqld by using kill command

3. Start MySQL Server shell > mysqld_safe-- skip-grant-tables & using the-- skip-grant-tables parameter

4. Set the new password for root@localhost shell > mysqladmin-u root flush-privileges password "newpassword"

5. Restart MySQL Server

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

Wechat

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

12
Report