I am operating Laravel Valet to get a easy WP native development surroundings. Unusually in some unspecified time in the future wp-cli stops having the ability to do a lot and provides me a "Error establishing a database connection" with practically every little thing.
mkdir take a look at
cd take a look at
wp core obtain
wp config --dbname=test-wp --dbuser=root
(take a look at the positioning at take a look at.take a look at in my browser: works nice)
wp plugin
Error: Error establishing a database connection
wp core
Error: Error establishing a database connection
wp db question "SHOW TABLES"
(works: lists all of the tables)
wp-config.php (excerpt)
outline( 'DB_NAME', 'cc-wp' );
/** MySQL database username */
outline( 'DB_USER', 'root' );
/** MySQL database password */
outline( 'DB_PASSWORD', '' );
/** MySQL hostname */
outline( 'DB_HOST', '127.0.0.1' );
Undecided what else to check right here. What’s irritating is that the positioning is working, connecting to the database and even wp-cli can connect with the database through wp db question
so what is going on on with this different stuff?