| Recommend this page to a friend! | 
| Info | Example | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 73 | All time:  10,232 This week: 455 | ||||
| Version | License | PHP version | Categories | |||
| sadatdbdumper 1.0.0 | The PHP License | 5 | PHP 5, Databases, Systems administration | 
| Description | Author  | |
This class can be used to dump a MySQL database using mysqldump or output SQL statements.  | 
<?php | 
include class
    include('dump.class.php');
set host
    $sql->setDBHost('127.0.0.1');
set port
    $sql->setDBPort('3306');
set username
    $sql->setDBUsername('root');
set password
    $sql->setDBPassword('temasek209!');
set sql file name
    $sql->setSQLFileName('peregrin');
set sql dump path, make sure the path has read and write privileges
    $sql->setDumpPath('/var/www/');
Incase there is no mysqldump in your path or its not installed
$sql->setMySQLDump(false);
set download, if you wanna run it through a browser and download the sql file
$sql->setDownloadSQLFile(true);
set download, if you wanna run it through a browser and download
    $sql->setDownloadSQLFile(true);
dump MySQL File
$sql->dumpDB(true);
| File | Role | Description | 
|---|---|---|
| Example | Example script | |
| Class | Class source | |
| Doc. | Documentation | 
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
  | 
  | 
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.