Steps for using the non-installed version of MySQL and solutions for forgetting the password

Steps for using the non-installed version of MySQL and solutions for forgetting the password

The first step is to unzip the compressed package to the corresponding disk.

The second step is to open cmd and enter the bin directory of the unzipped folder, and run mysqld -install.

The third step is to start the service: enter the unzipped folder with cmd and execute net start mysql.

The fourth step is to install the graphical interface navicat.

Solution if you forget your password:

1. The administrator logs in to the system and stops the MySQL service or ends the mysqld process

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

3. Run d:\MYSQL\bin\mysqld --skip-grant-tables to start mysql and turn off permission checking

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 the mysql service, net stop mysql and then net start mysql, then mysql -u root -p and enter the password to log in

The verification is successful and MySQL is running normally again.

7. Log in to mysql -u root -p

The above are the steps for using the non-installation version of MySQL and the solution to forgetting the password. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • Win32 installation and configuration of non-installed version of MySQL

<<:  How to deploy HTTPS for free on Tencent Cloud

>>:  Implementation of Webpack3+React16 code splitting

Recommend

Analyze the difference between ES5 and ES6 apply

Table of contents Overview Function signature Opt...

A "classic" pitfall of MySQL UPDATE statement

Table of contents 1. Problematic SQL statements S...

Canvas draws scratch card effect

This article shares the specific code for drawing...

Let's talk in depth about the principle and implementation of new in JS

Table of contents definition Constructor bodies a...

How to analyze MySQL query performance

Table of contents Slow query basics: optimizing d...

HTML dynamically loads css styles and js scripts example

1. Dynamically loading scripts As the demand for ...

The difference between datatime and timestamp in MySQL

There are three date types in MySQL: date(year-mo...

The perfect solution for MySql version problem sql_mode=only_full_group_by

1. Check sql_mode select @@sql_mode The queried v...

18 Web Usability Principles You Need to Know

You can have the best visual design skills in the...

Two methods to implement MySQL group counting and range aggregation

The first one: normal operation SELECT SUM(ddd) A...

How to show or hide common icons on the desktop in Windows Server 2012

Windows Server 2012 and Windows Server 2008 diffe...

mysql 8.0.15 winx64 decompression version graphic installation tutorial

Every time after installing the system, I have to...

Installation method of MySQL 5.7.18 decompressed version under Win7x64

Related reading: Solve the problem that the servi...