ดูที่นี่: https://github.com/ifsnop/mysqldump-php ! เป็นโซลูชันดั้งเดิมที่เขียนด้วย php
คุณสามารถติดตั้งโดยใช้นักแต่งเพลงและทำได้ง่ายเพียงแค่ทำ:
<?php
use Ifsnop\Mysqldump as IMysqldump;
try {
    $dump = new IMysqldump\Mysqldump('database', 'username', 'password');
    $dump->start('storage/work/dump.sql');
} catch (\Exception $e) {
    echo 'mysqldump-php error: ' . $e->getMessage();
}
?>
รองรับผู้ใช้ขั้นสูงพร้อมตัวเลือกมากมายที่คัดลอกมาจาก mysqldump ดั้งเดิม
ตัวเลือกทั้งหมดมีคำอธิบายไว้ที่หน้า github แต่ส่วนมากหรือน้อยนั้นเป็นข้อมูลที่ชัดเจนโดยอัตโนมัติ:
$dumpSettingsDefault = array(
    'include-tables' => array(),
    'exclude-tables' => array(),
    'compress' => 'None',
    'no-data' => false,
    'add-drop-database' => false,
    'add-drop-table' => false,
    'single-transaction' => true,
    'lock-tables' => false,
    'add-locks' => true,
    'extended-insert' => true,
    'disable-foreign-keys-check' => false,
    'where' => '',
    'no-create-info' => false
);
               
              
mysqldumpโดยsystem().