mysqldump does work. reading the file back in is the problem.
tried: $error = system('/usr/local/bin/mysql --user= --password= db2 < $dir', $damn);
still doesn't work. changed backticks to quotes, still no luck. the only output i get is $damn = 1; database still empty.
is there another way to read a mysql dump into a database? I tried doing file($mysqlfile), and then while ( list( $line_num, $line ) = each( $sql_file ) ) {
$sqlquery .= $line;
}
$myQuery = $sqlquery;
$result = php_query($myQuery);
that didn't work either, lost connect to db everytime.
i would use mysqlimport, but that wants to import each table one at a time, not the whole db, and there's no coresponding mysql dump to output each table one at a time.
i know this must work all over the place, i've tried permissions, owners, everything. but nothing seems to work. any other suggestions? I even tried LOAD DATA INFILE but that too, wants table names.
d