Ubuntu 14.04 LEMP WordPress Search and Replace Plugin error

Posted April 29, 2014 1.4k views
Hello All, Just moved to Digital Ocean and enjoying it. I am migrating my blog from LAMP to LEMP. I have Varnish and APC running as well on my LEMP stack. For testing purposes, I have to find and replace URLs in my wordpress database. When I try to use the Wordpress Search and Replace plugin I am getting the following error: The inquiry could not be implemented: Access denied for user 'www-data'@'localhost' (using password: NO) For whatever reason, the plugin is not able to access the database. I would greatly appreciate if some one could help me solve it. Thanks for your time!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer
Is "www-data" the name of the database user in your wp-config.php? It seems to me that the plugin is assuming that the MySQL database user and the user running the Wordpress process will have the same name.