I have a trouble in restoring MySQL table back to the database from command line. Taking backup of a table is working with mysqldump.Taking backup and restoring of a database is also working properly. I have used:
mysql -uroot -p DatabaseName TableName < path\TableName.sql
Thanks in advance
Ah, I think I see the problem here.
Your backup script looks fine.
tbl_nameworks correctly as the optional 2nd argument.To restore, you should simply run
Running
man mysqlwould have shown you the correct arguments and optionsAs your backup script only contains one table, only that table will be restored into your database.