Log1x / acf-composer

Compose ACF Fields, Blocks, Widgets, and Option Pages with ACF Builder on Sage 10.
https://github.com/Log1x/acf-composer
MIT License
413 stars 56 forks source link

PHP Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in ... #147

Closed shalawfatah closed 1 year ago

shalawfatah commented 1 year ago

I installed acf-composer through composer and when I try to start publishing config/acf.php, I get this error:

PHP Warning:  mysqli_real_connect(): (HY000/2002): No such file or directory in /Users/skarim/vvv-local/www/globalwatchco-multisite/public_html/wp-includes/class-wpdb.php on line 1775
Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /Users/skarim/vvv-local/www/globalwatchco-multisite/public_html/wp-includes/class-wpdb.php on line 1775
Error: `No such file or directory`
Error establishing a database connection
This either means that the username and password information in your `wp-config.php` file is incorrect or that contact with the database server at `localhost` could not be established. This could mean your host’s database server is down.

Are you sure you have the correct username and password?
Are you sure you have typed the correct hostname?
Are you sure the database server is running?

If you are unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums. `No such file or directory`
Log1x commented 1 year ago

This has to do with your stack (VVV?) and will require you Google a solution for WP-CLI support.