Steps for using a non-installed Mysql version and solutions for forgetting the password, mysql forgot the password

Source: Internet
Author: User

Steps for using a non-installed Mysql version and solutions for forgetting the password, mysql forgot the password

Step 1 extract the compressed package to the corresponding disk.

Step 2 open cmd to enter the bin directory of the decompressed folder and run mysqld-install.

Step 3: enable the Service: Run cmd to enter the decompressed folder and run net start mysql.

Step 4 install the image interface navicat.

Solution for forgetting the password:

1. log on to the system as an administrator, stop the MySQL service, or end the mysqld process.

2. Enter the command line and go to the mysql installation directory. Assume that the installation directory is d: \ mysql \, and CMD enter the command line.

3. Run d: \ MYSQL \ bin \ mysqld -- skip-grant-tables to start mysql and disable permission check.

4. Run d: \ MYSQL \ bin \ mysqladmin-u root flush-privileges password "123" to reset the root password

5. d: \ MYSQL \ bin \ mysqladmin-u root-p shutdown

6. Restart mysql, net stop mysql, net start mysql, and mysql-u root-p to log on.

The verification is successful and mysql runs normally again.

7. log on to mysql-u root-p

The above section describes how to use the non-installed Mysql version and how to forget the password. I hope it will help you. If you have any questions, please leave a message for me, the editor will reply to you in a timely manner. Thank you very much for your support for the help House website!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.