Re: [e-smith-devinfo] Automating MySQL commands

2002-02-09 Thread Greg Zartman
Dan Brown <[EMAIL PROTECTED]> said: Another option would be to use the perl DBI module. The dbd::mysql DBI drivers contains a fairly wide array of mysqladmin functions via the admin () method call. To create a table or tables, the following code could be used: #Attach modules use DBI; use s

Re: [e-smith-devinfo] Automating MySQL commands

2002-02-09 Thread Jason Miller
On Sat, 9 Feb 2002, Dan Brown wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I'm working on putting together a package that will need to add some > MySQL tables. I'm thinking I should be able to add "mysql < > /path/to/script.sql" in a post-install script in the RPM. Th

[e-smith-devinfo] Automating MySQL commands

2002-02-09 Thread Dan Brown
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm working on putting together a package that will need to add some MySQL tables. I'm thinking I should be able to add "mysql < /path/to/script.sql" in a post-install script in the RPM. Those commands run as root, so I'd expect it should