I have downloaded a database from an existing Wordpress installation from another server. I would now like to import the database into a new Wordpress installation in my droplet.
I have uploaded the file to: /var/www/website/_downloads/database.sql.zip
Any help would be greatly appreciated, thanks!
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!
If you are installing the database through the terminal;
use <name_of_database>;
source <path_of_.sql>
first take the backup of wordpress database from another server using below command
mysqldump -u root -p databasename > database.sql #it will create file database.sql in current directory.
Not copy that file to new server and use below command to import the database.
mysql -u root -p databasename < database.sql
you can also unzip the /var/www/website/_downloads/database.sql.zip file and directly import using below command.
mysql -u root -p database name < /var/www/website/_downloads/database.sql
provide the root password to complete import.
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.