more useful options | |
PerlMonks |
DBD::mysql LOAD DATA INFILEby Ineffectual (Scribe) |
on Dec 06, 2008 at 02:56 UTC ( [id://728472]=perlquestion: print w/replies, xml ) | Need Help?? |
Ineffectual has asked for the wisdom of the Perl Monks concerning the following question:
Greetings Monks, I had a version of DBD::mysql installed. I was an idiot and accidentally deleted the directory it was installed in. NP, right? I installed it via CPAN doing install DBD::mysql and ran the script I have been running for awhile. However, now that script is erring with a "DBD::mysql::db do failed: The used command is not allowed with this MySQL version" error. I didn't change anything recently except I reinstalled the perl library. Is there some setting that I missed by installing via CPAN? The other possibility is that in between when I last installed the DBD::mysql module and now, I did install a new MySQL version (5.0.67). I didn't replace the DBD::mysql module and everything worked fine up until now though. Maybe it picked up something in the new installation that changed how DBD::mysql got configured? My MySQL server has the local_infile set to ON via a show variables command. My user has the FILE permission in the database. My my.cnf doesn't have anything for a client local_infile, but the script was working previously, so that suggests that it shouldn't be something with the MySQL configuration (though I did ask the admin for the box to edit that setting in). The command I use is: $dbh->do("load data local infile '$file' into table $tablename"); Just wondering if anyone has a suggestion on what I can do while I'm waiting for the sysadmin to edit the my.cnf file in the hopes that fixes it. :\
Back to
Seekers of Perl Wisdom
|
|