• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

MySQL Database's backup, how?

faiesk

New Member
Joined
Apr 14, 2008
Messages
12
Reaction score
0
I know that there's a option "Export" on phpMyAdmin, I used it, then I select the DataBase and click on Go, and it didn't give me the option to where export, just appear a text in the phpmyadmin, there's no option to save that.

But I think I discovery another way to backup it, which is:

C:\xampp\mysql\data\my_database_name

Just copy that folder (the ots' database), and then I can format my computer and paste it there normally, would it work fine?

Thanks
 
Execute this (or make a .bat script with it):
Code:
C:\xampp\mysql\bin\mysqldump.exe -u [B][COLOR=Red]USERNAME[/COLOR][/B] -p[B][COLOR=Red]PASSWORD[/COLOR][/B] [B][COLOR=Red]DATABASENAME[/COLOR][/B] > C:\backup.sql
Edit what are in red.

Note: there is no space between -p and the password.
 
It worked, but I have a last question :P

To restaure it when I format my comp, I just need to install XAMPP and then create a database with the same name and click to import it? or I don't need to create the database to restore it?

Thanks
 
It worked, but I have a last question :P

To restaure it when I format my comp, I just need to install XAMPP and then create a database with the same name and click to import it? or I don't need to create the database to restore it?

Thanks

To restore, just put the backup.sql on C:\ and change the ">" to "<" on the code :thumbup:
 

Similar threads

Back
Top