MySQL Forums
Forum List  »  General

MySQL Import
Posted by: Ryan Abrahams
Date: January 13, 2009 06:56PM

I hope I have the right forum for this, but here goes.

I am trying to import data from a CSV file daily, but I am getting messages about skipped files. I have tried this:

mysqlimport -u XXXX -p"XXXXXXXX" -L --socket=/tmp/mysql5.sock --delete --fields-terminated-by='|' --debug='d:t:o,/home/XXXX/private/debug.log' XXXX_stock africa.csv

I still get the warnings about the skipped records on the stdout:
soss_stock.africa: Records: 173559 Deleted: 0 Skipped: 35009 Warnings: 41


But no debug.log in the /home/XXXX/private/ directory. I am not sure if debugging has been disabled by my host, or if perhaps I have the wrong syntax for the --debug option. I know it writes to /tmp by default, but my hosting company does not allow writing to /tmp for its shell users.



mysql Ver 14.12 Distrib 5.0.67, for redhat-linux-gnu (i686) using EditLine wrapper


If someone can confirm that my syntax is right (DOCs only suggest --debug='d:t:o,FILENAME', not if you can use a full path or not) then I can contact my host and find out if I can get debugging enabled.


Kind regards,
Ryan Abrahams

Options: ReplyQuote


Subject
Written By
Posted
MySQL Import
January 13, 2009 06:56PM
January 17, 2009 10:10PM
January 18, 2009 11:40PM
January 17, 2009 10:31PM
January 19, 2009 12:57PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.