How to Fix Error establishing a database connection for any WP-CLI Command For MAMP

Sometimes while running WP-CLI commands, you will get following error

Error establishing a database connection

So this can be fixed by very simple method. Please watch the video for how to fix that.

Related Articles

Install wp-cli on windows

WP-CLI is a set of command-line tools for managing WordPress installations. You can update plugins, configure multisite installs and much more, without using a web browser.

So I am going to tell you short, simple and easy way that how to use wp-cli on windows system.

Fix 404 error on nginx

Sometimes you get unexpected 404 error from Nginx server. And I am going to tell you how I fixed the issue. You can fix that…

Fix 413 Request Entity Too Large in MaMP in 2 Minutes

Video for who doesn’t like to read ;). And if you like the video then subscribe my channel and share this with others who has…

PHPCode Sniffer + Sublime on windows

Things you need for: cmder composer Sublime Text 2/3 We are going to install using composer, because it will automatically install related packages. So no…

Fix – ERROR 1031 Table storage engine for ‘table_name’ doesn’t have this option

Sometimes you get the below error while importing the database. ERROR 1031 (HY000) at line 5643 in file: ‘/Users/username/Downloads/database.sql’: Table storage engine for ‘table_name’ doesn’t…

Responses

Leave a Reply