$kommand = "mysql -t --max_join_size=" .
(1000001 + @sizeof(@preg_split('/[\n\r]/', $archiveSQL)) + strlen(str_replace('"', '\\"', preg_replace('/[\n\r]+/', ' ', $archiveSQL))) + 1) .
" -h $dbHost --port=$dbPort -u $dbUser " .
" --password=$dbPwd -D $archiveDB -e \"" . str_replace('"', '\\"', preg_replace('/[\n\r]+/', ' ', $archiveSQL)) . '"';
$msg = exec("$kommand $redirect");
I am getting a rather obscure MySQL error (no error number, it only spits this back):
The SQL statement is an extremely large string of INSERT statements, anywhere between 27 and 500 or more, and I can't seem to get the INSERT statement to function, all the while continually producing this obscure error that does not have any documentation online that I could find.
I can't produce the actual SQL statement here, I'm sorry, the data is government-sensitive, not to mention extremely large in size!
Has anyone ever succesfully done an extremely large-sized multiple INSERT statement using MySQL command line before?
Thanx
Phil