in reply to Restore Database With DBI?
I would assume that source FILE is not a valid MySQL command.
Why not read each line from the SQL file and $dbh->do(...) it? You might also be interested in DBIx::RunSQL. Personally, I would just run the mysql binary with the source file, either locally or on the server. Maybe you want to talk to your database administrator on how to achieve this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Restore Database With DBI?
by kurt2439 (Sexton) on Sep 30, 2011 at 20:44 UTC |