Griffinator
Programmer
Hi,
I am having a problem with using the --extended-insert option when using mysqldump. As I understand it, this option creates multiple insert statements within the .sql file for tables that contain more than 1 row of data. According to documentation I have found, this substantially speeds up the restoration process. The main database I am concerned with uses the InnoDB engine, however I also want to backup the mysql database as well (which, to my knowledge, uses the MyISAM engine).
However, when I execute the database dump using this option, there is only 1 insert statement, and all values are seperated by commas. When trying to restore my databases, this causes my system to eventually freeze up due to the inefficiency of inserting multiple rows this way. I am using Windows XP, 1.8 Ghz, 512 MB of RAM.
The command I am issuing is as follows:
mysqldump --opt --single-transaction --u root --all-databases > "C:\testbackup.sql"
I have also issued the following command, with the same result:
mysqldump --extended-insert --single-transaction --u root --all-databases > "C:\testbackup.sql"
If someone could shed some insight into what I am doing wrong and how to execute the command to include multiple insert statements, it would be greatly appreciated.
Thanks in advance!
I am having a problem with using the --extended-insert option when using mysqldump. As I understand it, this option creates multiple insert statements within the .sql file for tables that contain more than 1 row of data. According to documentation I have found, this substantially speeds up the restoration process. The main database I am concerned with uses the InnoDB engine, however I also want to backup the mysql database as well (which, to my knowledge, uses the MyISAM engine).
However, when I execute the database dump using this option, there is only 1 insert statement, and all values are seperated by commas. When trying to restore my databases, this causes my system to eventually freeze up due to the inefficiency of inserting multiple rows this way. I am using Windows XP, 1.8 Ghz, 512 MB of RAM.
The command I am issuing is as follows:
mysqldump --opt --single-transaction --u root --all-databases > "C:\testbackup.sql"
I have also issued the following command, with the same result:
mysqldump --extended-insert --single-transaction --u root --all-databases > "C:\testbackup.sql"
If someone could shed some insight into what I am doing wrong and how to execute the command to include multiple insert statements, it would be greatly appreciated.
Thanks in advance!