Some problems you may encounter when installing MySQL

Some problems you may encounter when installing MySQL

Question 1:

When entering net start mysql during installation, the error message is:

net is not recognized as an internal or external command, operable.

Solution: Environment variable problem:

First, make sure there is net.exe under C:\Windows\System32.

In the following

My Computer –> Properties –> Advanced –> Add the variable value of the environment variable path: %SystemRoot%\system32

Remember here to add, not delete, the previous path environment variable. Be sure to pay attention!

After the modification is completed, you need to reopen the cmd command line, otherwise it will not take effect.

Question 2:

This problem occurs after solving problem one. The system cannot find the specified file.

**Solution:

Enter the specified path of mysql in the CMD administrator. My path here is D:\mysql5.7\mysql-8.0.22-winx64\bin

1. First, enter mysqld --remove in this path and press Enter.

2. Then enter mysqld --install and press Enter.

3. Finally, enter net start mysql and the MySQL server will start.

This will solve the problem

My solution screenshot is as follows:

Question 3:

Password modification problem: After entering mysql, you want to modify the password, you enter the code command:

set password for root@localhost=password('your new password');

At this time, if the following screenshot error occurs:

The password change failed, and there was an error when you showed databases;

**The reason for this is that when you create a new task environment, you must use alter user to change your password.

set password for root@localhost=password('your new password');

This command changes the password incorrectly, resulting in an error. **The solution is as follows:

Correct code command:

ALTER USER USER() IDENTIFIED BY 'your new password';

My modified screenshot is shown below:

These are some of the problems I encountered. After that, you can exit CMD again, re-enter CMD, follow the correct instructions to enter your MySQL database, and start database operations.

If you still don’t understand something, please leave a message. I will continue to pay attention to everyone’s questions, and work together to discover and solve problems. Come on!

Summarize

This is the end of this article about some difficult problems that you may encounter when installing MySQL. For more information about difficult problems in installing MySQL, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • MySQL installation diagram MySQL graphic installation tutorial (detailed instructions)
  • Installation and configuration of MySQL 5.6 under Windows with screenshots and detailed instructions
  • MySQL 5.6 (Win7 64-bit) download, installation and configuration graphic tutorial
  • MySQL 5.5 installation and configuration method graphic tutorial
  • CentOS 6.4 installation and configuration of LAMP server (Apache+PHP5+MySQL)
  • Install Apache and PHP under Linux; Apache+PHP+MySQL configuration strategy
  • Complete steps to install mysql5.7 on Mac (with pictures and text)
  • Graphic tutorial for installing mysql-5.6.4 under Linux
  • Summary of solutions for the problem that MySQL 5 cannot be started after installation (cannot start service)
  • Graphical method for installing Apache+MySQL+PHP operating environment under Windows

<<:  HTML table markup tutorial (15): table title

>>:  Docker build PHP environment tutorial detailed explanation

Recommend

Detailed process of using nginx to build a webdav file server in Ubuntu

Install nginx Note that you must install nginx-fu...

Example of adding and deleting range partitions in MySQL 5.5

introduce RANGE partitioning is based on a given ...

How to create users and manage permissions in MySQL

1. How to create a user and password 1. Enter the...

Design and implementation of Vue cascading drop-down box

Table of contents 1. Database design 2. Front-end...

Analysis of the operating principle and implementation process of Docker Hub

Similar to the code hosting service provided by G...

TypeScript Enumeration Type

Table of contents 1. Overview 2. Digital Enumerat...

Disadvantages and reasonable use of MySQL database index

Table of contents Proper use of indexes 1. Disadv...

How to develop uniapp using vscode

Because I have always used vscode to develop fron...

MySQL FAQ series: How to avoid a sudden increase in the size of the ibdata1 file

0. Introduction What is the ibdata1 file? ibdata1...

Summary of the use of CSS scope (style splitting)

1. Use of CSS scope (style division) In Vue, make...

Markup Languages ​​- Lists Again

Click here to return to the 123WORDPRESS.COM HTML ...

Detailed explanation of Getter usage in vuex

Preface Vuex allows us to define "getters&qu...

How to deploy k8s in docker

K8s k8s is a cluster. There are multiple Namespac...

Docker Swarm from deployment to basic operations

About Docker Swarm Docker Swarm consists of two p...