File: readme.md

Recommend this page to a friend!
  Classes of Hillary Kollan  >  Sadat PHP Database Dumper  >  readme.md  >  Download  
File: readme.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Sadat PHP Database Dumper
Dump a DB using mysqldump or output SQL statements
Author: By
Last change:
Date: 2 months ago
Size: 861 bytes
 

Contents

Class file image Download

Usage

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);


For more information send a message to info at phpclasses dot org.