Solution:
1. Find the my.ini file in the phpstudy installation directory
2. In the file [mysqld] option adds a new line skip-grant-tables
Recommended tutorial: phpstudy tutorial
The above is the detailed content of phpstudy cannot connect to mysql. For more information, please follow other related articles on the PHP Chinese website!