Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^2: DBI/load data infile issue

by jimbus (Friar)
on Jul 08, 2005 at 16:33 UTC ( #473483=note: print w/replies, xml ) Need Help??

in reply to Re: DBI/load data infile issue
in thread DBI/load data infile issue

Not to be snippy, but my original post does say I've done exactly what you suggested and got the expected results:

I check the tmp file and it had 3599 lines, I printed out the command from the perl script and appened it to mysql -e and got 3599 records.

The results from the code listed above with PrintError=1 and trace=2:

[reports@clarkkent]/home/reports/ftp/WSB(29): ./ load data infile '/tmp/WSB_urls_CDyy' into table tmpurl fields termina +ted by '|' (tstamp,url,count) load data infile '/tmp/WSB_count_YAkf' into table tmpwsb fields termin +ated by '|' (tstamp,op100,op700,total) lines: 72182 Done parsing: 1107730800: 1107734398 Done writing counts Done writing urls Done writing count DB Done writing url DB just done [reports@clarkkent]/home/reports/ftp/WSB(30):

I can cut and paste the load command printed out by the script to "mysql -u root -pXXXX -e" and run it from the unix command line and I get the correct results.

When I run the same command from the perl script in ``s I get the same results as I do using DBI

Never moon a werewolf!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://473483]
[1nickt]: choroba That's why I asked if anyone is using it :-)
choroba only has used Moo from the htree
[1nickt]: Pardonm?
[choroba]: three
[choroba]: I mean I haven't used DBIx::Class nor M:S, only Moo
[1nickt]: Haha, I was learning about Linux filesystem trees trying to understand how Moo fits.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-11-24 13:24 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (349 votes). Check out past polls.