I need to restore only one table in my database.
I have a file .sqlthat contains all the information I need for one table, and the rest will overwrite important information for other tables.
Instead of using the here solution - with a tool I had never heard of, I thought it was more confident to do it manually.
Unfortunately, MySqlDump generated the GIANT insert line too long to insert mysql into the command line ...
What should I do?
Should I use sed as described above?
Or can I copy the commands for this particular table from mysqldump.sqlto a new file .sql, and then call:
mysql -u root -p -h localhost < copyPasteFile.sql
source
share