●ダンプとる
mysqldump -u root -p target_DB > output.sql
●リストアする
mysql -u root -p -D new_target_DB < output.sql
●テーブルのカラム定義を一覧表示
SHOW FULL COLUMNS FROM table;
●ダンプとる
mysqldump -u root -p target_DB > output.sql
●リストアする
mysql -u root -p -D new_target_DB < output.sql
●テーブルのカラム定義を一覧表示
SHOW FULL COLUMNS FROM table;