I have tried copying /var/lib/mysql/ the files, but it doesn’t work well, after copying the files and Ib file, my table doesn’t show up, it said they don’t exist, even I changed the permission though. I am not sure what went wrong, it could be the problem with the version of MySQL. I don’t know the version of MySQL what I had the data, my current database server version is 5.7.26 which I am loading it.
So, I would like to know how to export rather than copying which I am stuck doing. Mysql is still in /mnt/usr/bin. How can I run them, in order to export all the databases, can you please tell me step by step for rescue mode.
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!
On Linux server, use terminal command mysqldump -u YourUser -p YourDatabaseName > wantedsqlfile.sql
This command will export the database to the current directory that you are in. You will be prompted for password for the user.
Create a snapshot / backup of your server beforehand incase anything goes wrong.
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.