Jump to content

How to use PHP to backup a mySQL (InnoDB) database?


random1

Recommended Posts

depends what you want to backup?

 

phpymadmin has very nice backing up software

if you want to write your own you need to

 

1) Get the tables you want to back up

2) Get their content

3) Store it

 

 

start there and ask questions on what u can't do in 1,2,3

well once I have such kind of difficulty because its tough to get backup using phpmyadmin if the table is very very large, like my case, the table has more than 1 million records with more than 100 columns. There is a process call mysqldump, you can find plenty of result if you search, but for some reason I cant totally successfull using that command. MyISAM db has a very neat and easy way to backup the data, you have to only backup the mysql/data folder from your harddisk.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.