10up/MU-Migration

Error establishing a database connection

derekPrivate opened this issue · 4 comments

Just trying this tool for the first time. I have successfully exported my multi-site Wordpress to a zip file. I have copied the zip file to a (completely) new Wordpress installation. I run the command

wp mu-migration import all site.zip --new_url=dev.xxxxxxxx.com/wordpress --path=/var/public/sites/wordpress

and get the message
Error establishing a database connection

Any ideas how I can investigate the issue? I have checked usernames etc using phpMyAdmin

Does the site work properly outside of MU-Migration? This seems to be an issue within your database connection since MU-Migration does not handle connections to the database directly.

OK, I eventually found the issue. I was having the same problem with wp core update and tracked it down (eventually!) to using the native php instead of the one supplied with MAMP.

Thanks for your help.