Ratings | | Unique User Downloads | | Download Rankings |
Not yet rated by the users | | Total: 166 | | All time: 8,899 This week: 455 |
|
Description | | Author |
This class can download backup from SQL dump using MySQLi.
It can connect to a given database with the user and password of an account and generates SQL statements to restore the database tables and records when the SQL statements are executed.
The generated SQL statements are served as a file for download with a given file name or an automatic name based on the current date and time. | |
 |
|
Innovation award
 Nominee: 2x
Winner: 1x |
|
Example
<?php
include_once 'backupClass.php';
$backupClass=new backupClass();
$host="localhost";
$user="root";
$password ="";
$dbName="webcam";
$backupName="TestDatabase.sql";
$tables=false; // Backup whole database tables if want specific than comment this line and uncomment the next line
//$tables=array("snapshot"); //backup specific tables only: array("mytable1","mytable2",...)
echo $backupClass->EXPORT_TABLES($host, $user, $pass, $dbName, $tables, $backupName);
?>
|
Details
mysql-backup
This class will backup whole database or selected tables from the database
For exporting the database as .sql file use this function.
echo $backupClass->EXPORT_TABLES($host, $user, $pass, $dbName, $tables, $backupName);
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.