Ubuntu 14.04 LEMP WordPress Search and Replace Plugin error

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!

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.