in reply to MySQL and PERL
For the @INC issue just do:
use lib './'; # put current dir into @INC
For MySQL it would seem unlikely that your assignment requires a running copy of MySQL wrapped with it. This makes no sense. You can change the data path via starting mysql with --datadir=/path/to/datadir or by changing the the config options in /etc/my.cnf
[mysql.server] user=mysql basedir=/var/lib
Changing /etc/my.cnf is not going to work as this is not in your folder. Even if you could, either possible option to change the data path requires a server restart. It makes a lot more sense to use mysqldump or mysqlhotcopy to dump your DB and then just have a little shell/perl sctipt to create the DB and insert the data into a local MySQL. If you need one file stand alone functionality I sugges DBD::SQLlite is a better option.
cheers
tachyon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: MySQL and Perl
by Juerd (Abbot) on Jul 20, 2004 at 08:15 UTC | |
by tachyon (Chancellor) on Jul 21, 2004 at 01:18 UTC | |
by Juerd (Abbot) on Jul 21, 2004 at 13:19 UTC | |
by gellyfish (Monsignor) on Jul 21, 2004 at 13:28 UTC |