PHP MySqldump Script
Simple php script which allows you to take backup of MySQL database.
Features
- You can export MySql database using PHP
- Exported database will be saved in .sql file format.
- Easy to download and access the database.
- It takes only few seconds to transfer the large database.
Preview
MySqldump Backup script
Downloads
<?php
function dump_mysql($dbname,$username,$password,$hostname,$exportpath)
{
$command='/opt/lampp/bin/mysqldump -h ' .$hostname .' -u ' .$username .' ' .$dbname .' > ' .$exportpath;
echo $command;
exec($command);
}
//Fill the below information
$db ='task3db';//your dbname
$user ='root';//your username
$pass ='';//your password
$host ='localhost';//your hostname
$path ="/opt/lampp/htdocs/mysqldump/mydb.sql";//your export path
echo dump_mysql($db,$user,$pass,$host,$path);
?>
- Release Date - 25-07-2015
- Get free version without ©copyright link for just $10/-
- For customization of this script or any script development, mail to support@hscripts.com
Usage
- Copy and paste the above PHP code in your web page.
- Function dump_mysql() is used to dump/export the database.
- Give proper database details and correct path.
- Exported database will be saved in .sql format.
- The scripts allows you to dump or creates a full backup database.
License
Related Scripts