Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: trying to execute "LOAD DATA INFILE" using DBI::Mysql

by j1n3l0 (Friar)
on May 17, 2007 at 10:03 UTC ( [id://615961]=note: print w/replies, xml ) Need Help??


in reply to trying to execute "LOAD DATA INFILE" using DBI::Mysql

Yes. You can use the mysqlimport option from a perl system call like so
#!/usr/bin/perl -w use strict; my $command = qq(mysqlimport -u $username -p$password -L $database $in +file); system($command) == 0 or die qq(system $command failed: $?); exit;
You should get output that looks like this:
databasename.tablename: Records: 1 Deleted: 0 Skipped: 0 Warnings: +0

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-25 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found