SleepyJay has asked for the wisdom of the Perl Monks concerning the following question:
I have a mysql dump that I want to import using the mysql command 'source file.sql'. However, I just read that is not supported by Perl DBI... sigh.
So, aside from writing my own parser for sql scripts, is there a less painful way?
Note that something like system('mysql < file.sql') works, but it's not an ideal way to capture mysql warnings/errors.
thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl DBI MySQL source command...
by Anonymous Monk on Oct 22, 2009 at 01:15 UTC | |
by SleepyJay (Beadle) on Oct 22, 2009 at 14:02 UTC |