PHP 클래스 MySQLDump
Here is an inline example:
$connection = @mysql_connect($dbhost,$dbuser,$dbpsw);
$dumper = new MySQLDump($dbname,'filename.sql',false,false);
$dumper->doDump();
Special thanks to:
- Andrea Ingaglio
helping in development of all class code
- Dylan Pugh for precious advices halfing the size of the output file and for helping in debug
파일 보기
프로젝트 열기: dg/mysql-dump
1 사용 예제들
공개 프로퍼티들
공개 메소드들
메소드 |
설명 |
|
__construct ( mysqli $connection, $charset = 'utf8' ) |
Connects to database. |
|
dumpTable ( $handle, $table ) : void |
Dumps table to logical file. |
|
save ( $file ) : void |
Saves dump to the file. |
|
write ( $handle = NULL ) : void |
Writes dump to logical file. |
|
비공개 메소드들
메소드 상세
public __construct ( mysqli $connection, $charset = 'utf8' ) |
$connection |
mysqli |
|
Dumps table to logical file.
Writes dump to logical file.
프로퍼티 상세
public array $tables |
리턴 |
array |
|