Как вывести базу данных MySQL без данных? - PullRequest
1 голос
/ 19 августа 2011

Привет, мне нужно выгрузить мою базу данных mysql с представлениями и sp.Но мне не нужны никакие данные.Как я могу написать команду mysqldump для этого?

Ответы [ 2 ]

2 голосов
/ 19 августа 2011
  -R, --routines      Dump stored routines (functions and procedures).
1 голос
/ 19 августа 2011
--no-data, -d

       Do not write any table row information (that is, do not dump table contents). This is useful if you want to dump only the CREATE TABLE statement for
       the table (for example, to create an empty copy of the table by loading the dump file).

Источник: man mysqldump и mysqldump --help

...