Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

DBD::mysql LOAD DATA INFILE

by 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. :\

Replies are listed 'Best First'.
Re: DBD::mysql LOAD DATA INFILE
by Anonymous Monk on Dec 06, 2008 at 19:04 UTC
    Maybe you've had installed an older version before installing that DBD::mysql you deleted. Have you already checked which .pm-file is really used? Checked /usr/lib/perl5?, /usr/localdata/perl5?, /usr/share/perl, $HOME/perl or yourConfig(tm) for left over pieces of your destroyed installation ?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://728472]
Approved by Narveson
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-20 02:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found