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! SummarizeThis 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:
|
<<: HTML table markup tutorial (15): table title
>>: Docker build PHP environment tutorial detailed explanation
Install nginx Note that you must install nginx-fu...
introduce RANGE partitioning is based on a given ...
1. How to create a user and password 1. Enter the...
Table of contents 1. Database design 2. Front-end...
Similar to the code hosting service provided by G...
Table of contents 1. Overview 2. Digital Enumerat...
Table of contents Proper use of indexes 1. Disadv...
Because I have always used vscode to develop fron...
0. Introduction What is the ibdata1 file? ibdata1...
1. Use of CSS scope (style division) In Vue, make...
Click here to return to the 123WORDPRESS.COM HTML ...
Preface Vuex allows us to define "getters&qu...
illustrate: Using mysqldump –all-databases will e...
K8s k8s is a cluster. There are multiple Namespac...
About Docker Swarm Docker Swarm consists of two p...