I only want to dump the tables which begin with 'JI' et 'QRTZ' I searched in strackoverflow, the way to do this is using --ignore-table, but i have hundreds tables to ignore...
any tools to get this job done?
thanks
One way would be to use a script to do this.
For example, create a PHP script that queries for all the tables in the database and then creates a .bat/.sh file that you can run to do your job.
这是一个简单的方法:
mysql databasename -u [username] -p[password] -e 'show tables like "JI%" and "QRTZ%"' | grep -v Tables_in | xargs mysqldump [dbname] -u [username] -p[password] > [dump_file]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.