The reason has been found. When upgrading mysql to version 5.7, a MySQL service is registered. This service cannot coexist with MySQLa installed by phpstudy.
Just uninstall the MySQL service.
Running sc delete in Windows PowerShell is invalid. You need to run sc delete under the cmd command instead. I hope no one will step on my trap.
learned
The reason has been found. When upgrading mysql to version 5.7, a MySQL service is registered. This service cannot coexist with MySQLa installed by phpstudy.
Just uninstall the MySQL service.
Running sc delete in Windows PowerShell is invalid. You need to run sc delete under the cmd command instead. I hope no one will step on my trap.
Check whether your Mysql path has been modified!