Mysqldump only tables with certain prefix / Mysqldump wildcards?

后端 未结 9 2540
一个人的身影
一个人的身影 2020-12-07 07:37

I have this huge, messy database I am cleaning up. It houses 500+ tables, which is the result of combining Magento Enterprise with Joomla in one single DB.

To make t

9条回答
  •  我在风中等你
    2020-12-07 08:16

    My favorite:

    mysqldump DBNAME $(mysql -D DBNAME -Bse "show tables like 'wp\_%'") > FILENAME.sql
    

    All the answers take nearly the same approach, but this is the most concise syntax.

提交回复
热议问题