Comments on How to backup/restore MySQL database without a plain dump?
March 29, 2009
Broken M @ 11:41 pm
you could install phpMyAdmin to back it up…or you could do a plain dump…or use any of the backup features on the server…or use any of the multiple backup features that come with mysql.
April 1, 2009
webwaay.com @ 10:07 am
Just copy the whole data folder of MySQL
April 2, 2009
EE E @ 10:41 pm
“Just copy the whole data folder of MySQL”
best answer.
this is how i did mine.
open /etc/my.cnf
(this contains the mysql server configuration. we need to find where mysql put its files. since i use innodb, i found the data here:
innodb_data_home_dir = /var/lib/mysql/
and backup /etc/my.conf too. if you use a different my.cnf on a restored mysql server, it could destroy all the data there.
)
then you backup at least the following
ib* (includes ibdata1, ib_logfile1, ib_logfile2) which contains your entire database.)
all the folders found inside. it contains your tables and structures.
you dont have to backup the binlogs or SERVERNAME-bin.001. It contains the binary logs for replication.
Comments on How to backup/restore MySQL database without a plain dump?
you could install phpMyAdmin to back it up…or you could do a plain dump…or use any of the backup features on the server…or use any of the multiple backup features that come with mysql.
Just copy the whole data folder of MySQL
“Just copy the whole data folder of MySQL”
best answer.
this is how i did mine.
open /etc/my.cnf
(this contains the mysql server configuration. we need to find where mysql put its files. since i use innodb, i found the data here:
innodb_data_home_dir = /var/lib/mysql/
and backup /etc/my.conf too. if you use a different my.cnf on a restored mysql server, it could destroy all the data there.
)
then you backup at least the following
ib* (includes ibdata1, ib_logfile1, ib_logfile2) which contains your entire database.)
all the folders found inside. it contains your tables and structures.
you dont have to backup the binlogs or SERVERNAME-bin.001. It contains the binary logs for replication.