Hello,
I am currently having a wordpress website at cloudways and I want to migrate to digitalocean. I successfully installed wordpress using easyengine (nginx) and I transferred wp-content to the new server here.
I am stuck at migrating the database. As I can understand the default location for databases is at /var/lib/mysql. How can I transfer my old database here using an .sql or .sql.gp file?
I used this command mysql -h localhost -u xtmdntvrds -p xtmdntvrds < xtmdntvrds.sql but when I insert password it gives me ERROR 1045 (28000): Access denied for user 'xtmdntvrds'@'localhost' (using password: YES)
The password is correct for sure because I can see it in wp-config.php file.
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!
The simplest way is to install a Wordpress plugin called Duplicator and follow the instructions. It will also handle renaming of the URLs for you.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.