dump a specific table

Sometimes you just want a specific mysql table.

mysqldump -u [username] -p --no-create-info source_database_name source_table_name > saved_database_content.sql

You can then load that content into a new database:

mysql -u [username] -p target_database_name < saved_database_content.sql

Comments

Popular posts from this blog

what to do if you crashed your database OR it says there are no tables (but there are!)

completely erase and reinstall mysql script.

mysql says you can't login as root but you have definitely got the right password