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 32 articles

Premium Dedicated Hosting Services