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

banner dedicated


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


banner dedicated


Colo-Serv Communications has written 31 articles

Premium Dedicated Hosting Services

Leave a Reply

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

15 − seven =

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>