|Ratings|| ||Unique User Downloads|| ||Download Rankings|
|Not enough user ratings||Total: 510 ||All time: 5,752 This week: 110|
This class can create database backup SQL statements using MySQLi.
It can connect to a MySQL database table using the MySQLi extension and generates a file with SQL statements that can be used later to restore the table definition and record data of one or more database tables.
The class creates a backup file with a unique name and returns the backup file name.
// example to do a full database backup
$B = new danenMysqlBackup();
$backupSqlFile = $B->backupStart();
if ( $backupSqlFile )
$backupSqlFile = basename( $backupSqlFile );
echo "Created: $backupSqlFile";
echo "ERROR: backup failed.";
I needed a MySQL database backup function that I could call from a script and
would not rely on mysqldump or phpMyAdmin.
I found a class by Hossein Sarlak that used the older mysql interface. I wanted
the newer mysqli interface, so I set out rebuilding the class when I could not
locate Hossein Sarlak.
I found his script for sale for $25, but no indication whether it was updated.
This script is free. Use as you see fit.
Make sure to read all comments. There are some customizations needed.
26 February 2015
||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.