Home >Backend Development >PHP Tutorial >PHP uses XML to back up MySQL database instance_PHP tutorial
This article will introduce you to a PHP backup MySQL database instance using XML. Personally, I think this method is only suitable for users with small data volumes and low security requirements.
The following is the file code for backing up the Mysql database through Apache+PHP under Linux:
File 1, Listtable.php (file lists all tables in the database for backup)
Please select the table to backup:
The code is as follows
|
Copy code
|
||||
$con=mysql_connect('localhost',' root','xswlily');
$lists=mysql_list_tables("embed",$con);
$i=0; |
";