php - WP-CLI error in connecting to the database -
this common wp-cli error while using mamp. installed wp-cli, exported php version mamp using wp_cli_php variable recommended instructions. output of $ wp --info
is:
php binary: /applications/mamp/bin/php/php5.6.2/bin/php php version: 5.6.2 php.ini used: /applications/mamp/bin/php/php5.6.2/conf/php.ini wp-cli root dir: phar://wp-cli.phar wp-cli global config: wp-cli project config: wp-cli version: 0.20.1
i've followed along solutions this, i'm still getting timeout , error in connecting database. have mamp running while running wp-cli commands. ideas?
after seeing comment here issues if-statements can have wp-cli when used in wp-config file, went , checked mine. config file using number of if-statements set $config_file variable. commented out entire block , set $config_file = "path_to_config"
. seems have done trick.
Comments
Post a Comment