When using MAMP as a server to develop a PHP database application, the database service cannot be connected. Even using Navicat, the following error occurs
In Navicat's connection properties, go to Advanced, check "Use socket file", and change /Applications/ MAMP/tmp/mysql/mysql.sock Copy it in
The above is the detailed content of What should I do if the database service cannot be connected when PHP connects to MAMP?. For more information, please follow other related articles on the PHP Chinese website!