I followed the install instructions at wp-cli.org and am unable to connect to database. I am using a newly installed (this morning) version of MAMP PRO.
which php
/usr/bin/php
echo $WP_CLI_PHP
/Applications/MAMP/bin/php/php5.5.14/bin/php
wp --info
PHP binary: /usr/bin/php
PHP version: 5.5.14
php.ini used:
WP-CLI root dir: phar://wp-cli.phar
WP-CLI packages dir:
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 0.24.1
When I run wp <anything>
in the command line, I get Error: Error establishing a database connection
wp-config.php
file?