Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Restore Database With DBI?

by kurt2439 (Sexton)
on Oct 03, 2011 at 16:23 UTC ( #929376=note: print w/replies, xml ) Need Help??


in reply to Re: Restore Database With DBI?
in thread Restore Database With DBI?

Thanks for all the input guys. I ended up running the mysql command on the remote system via the perl system() command as you guys suggested. Getting it all done with native perl code wasn't necessary.

The only trick to getting the system() call to mysql to work as a scheduled task was to use the .my.cnf file in the calling users home directory to specify their sql user, pass and target database without being prompted. Works great!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://929376]
help
Chatterbox?
[Corion]: marto: Naah, I'm avoiding that rabbit hole ;) Sometimes I think of using Perl to create MIDI to generate music, or at least the harmonies to which I could jam, but then that would eat even more into available time ;-))

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2017-07-27 07:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (404 votes). Check out past polls.