Home >Database >Mysql Tutorial >What should I do if mysql cannot be started in wamp?
Solution to the problem that mysql cannot be started in wamp: 1. Start the MySQL service by setting environment variables; 2. Stop the MySQL service before starting wampserver; 3. Add or modify "innodb_force_recovery" in my.ini =1" and so on.
Recommendation: "mysql video tutorial"
Since MySQL has been installed before, this installation will not overwrite it. However, to open the MySQL service, you need to open the previous MySQL.
1. You can open the MySQL service by setting the environment variable:
MYSQL_HOME::Add path C:\wamp64\bin\mysql\mysql5.7.23
path: Add: %MYSQL_HOME%/bin
Some computers will report an error: It probably means that wampserver is not working Accept the modified path (go to 2)
2. Because the MySQL installed before will start the MySQL service, before starting wampserver, stop this service and that’s it!
win R: Run, enter: services.msc, find MySQL, right-click to stop, you can
This time, restart your wampserver or reinstall wampserver, and that’s it! ! ! 3. During this period, I also tried: the following methods, netizens can try them~ (I didn’t succeed anyway~~)
The above is the detailed content of What should I do if mysql cannot be started in wamp?. For more information, please follow other related articles on the PHP Chinese website!