Restore Issues
Cannot get a restore to work. This is a production system and needs to be addressed somehow:
mysql -u root -p db_old < dblatest.sql
Enter password:
ERROR 1047 (08S01) at line 66749: Unknown command
-
Hi Jason,
You could try this:
mysql -u root -p db_old --max_allowed_packet=1024M < dblatest.sql
The command will increase the maximum packet size to 1G. Ensure you have sufficient memory beforehand. If it still fails, try to examine the failing line:
awk '{ if (NR==66749) print $0 }' dblatest.sql >> line66749.sql
cat line66749.sqlRegards,
Ashraf
Please sign in to leave a comment.
Comments
2 comments