How to restore single table in MySQL database via command line?

Started by Dipak Bhoi, May 01, 2015, 05:18:51 PM

Previous topic - Next topic

Dipak Bhoi

Hello folks,

It is very simple to restore mysql table in database.

Syntax :

Quote#mysql -u username -p -D database_name < tableName.sql

Example :

Quote#mysql -u username -p -D dipak_data1 < table1.sql

That's all. And data will be inserted in table.

Enjoy !!!  :) :)







MilesWeb - 30-Day Money Back
cPanel Web Hosting - cPanel Hosting in India
Grab a Free SSL for your website.  WordPress Optimized Solution.