Open bag7dad opened 3 years ago
I am thinking about limit all other tables
//export table4
use Ifsnop\Mysqldump as IMysqldump; try { $dump = new IMysqldump\Mysqldump('mysql:host=localhost;dbname=aaaa', 'bbbb', 'cccc'); $dump->setTableLimits(array( 'table1' => 0, 'table2' => 0, 'table3' => 0, )); $dump->start('file/dump.sql'); } catch (\Exception $e) { echo 'mysqldump-php error: ' . $e->getMessage(); }
is that correct?
Try 'include-tables' => array() option.
'include-tables' => array()
https://github.com/ifsnop/mysqldump-php#dump-settings
I am thinking about limit all other tables
//export table4
is that correct?