I'm running WP CLI and MAMP on my MacBook for a local development environment. My version of WP CLI is current (0.24.1). I've just upgraded MAMP to it's latest version (4.0.4), which also upgrades to MySQL 5.6. After running the upgrade, I began receiving a fatal error when calling any WP CLI command that involves a database connection.
For example, a command involving only the file system ("wp core verify-checksums", for example) produces expected results. However, "wp plugin list", for example, results in the following errors:
Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /Applications/MAMP/htdocs/wp-includes/wp-db.php on line 1490
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /Applications/MAMP/htdocs/wp-includes/wp-db.php on line 1520
Warning: mysql_connect(): No such file or directory in /Applications/MAMP/htdocs/wp-includes/wp-db.php on line 1520
Fatal error: Call to undefined function wp_die() in /Applications/MAMP/htdocs/wp-includes/wp-db.php on line 3103
I don't find any known compatibility issues with the WP CLI latest and MySQL 5.6 when I search, but perhaps I'm missing something. I'm more inclined to think that this is a local environment issue. Site functions without issue after the upgrade, and I'm still able to administrate databases within MAMP via Sequel Pro.
Any ideas?