How to Drop and Import a table in MySQL Database via Command line

How to Dump and Import a table in MySQL Database via Command line

In this document, we will show you how to dump a table in a particular database and restore a table from a .sql


How to dump a specific table

mysqldump -u [username] -p [database] [table] > this_table.sql


How to restore this table to your database.

mysql -u [username] -p -D [database] < this_table.sql


Colo-Serv Communications has written 20 articles

Premium Dedicated Server in Canada

Leave a Reply

Your email address will not be published. Required fields are marked *

fifteen + sixteen =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>