PHP MySQL Copy Database: Copy MySQL tables from one database to another

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2021-09-22 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 196 This week: 10All time: 8,418 This week: 20Up
Version License PHP version Categories
copydb 1.0.1MIT/X Consortium ...5PHP 5, Databases, Systems administration
Description Author

This class can copy MySQL tables from one database to another.

It provides a Web page script and a class that extends the PHP MySQLi to connect to a given MySQL database server.

The script executes queries using the class to copy all table records from one database in one server to another in the same server or a different server.

It copies 100 table records at a time if those records are not damaged.

The origin and destination MySQL servers can run different versions of MySQL.

Notice that if the origin MySQL server crashes, you should restart the server before you use this class to copy the records.

If the process of reading from damaged tables takes longer, you should set the PHP execution time limit option to at least 2 minutes (120 seconds).

Innovation Award
PHP Programming Innovation award nominee
September 2021
Nominee
Vote
Sometimes it may be necessary to recover a database that has some damage due to an accident.

One way to recover that database is to copy the records of the tables that you can still save to another database.

This class provides a solution to save the table records of a MySQL database to another database.

It can copy a small number of records at a time to save as many records as possible.

Manuel Lemos
Picture of René Mansveld
  Performance   Level  
Name: René Mansveld <contact>
Classes: 1 package by
Country: Germany Germany
Age: 56
All time rank: 4086219 in Germany Germany
Week rank: 21 Up2 in Germany Germany Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file copydb.php Class Script

 Version Control Unique User Downloads Download Rankings  
 0%
Total:196
This week:10
All time:8,418
This week:20Up
For more information send a message to info at phpclasses dot org.