Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 4243

INFILE and Windows problem (3 replies)

$
0
0
Hi there,

I just discovered the INFILE option, and I think it will help our server a lot. However there is a strange path error now I have enabled the right permissions on the MySQL user:

LOAD DATA INFILE : SQLSTATE[HY000]: General error: 13 Can't get stat of '/var/lib/mysql/C:/Data/path/to/piwik/tmp/assets/Stats_option-41be599e80088d241d542bb542cccb63.csv'

According to some hacked in echos, this is what Piwik is sending to execute:

LOAD DATA INFILE 'C:/Data/path/to/piwik/tmp/assets/Stats_option-41be599e80088d241d542bb542cccb63.csv' REPLACE INTO TABLE `Stats_option` FIELDS TERMINATED BY '	' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY ' ' (option_name,option_value) LOAD DATA LOCAL INFILE 'C:/Data/path/to/piwik/tmp/assets/Stats_option-41be599e80088d241d542bb542cccb63.csv' REPLACE INTO TABLE `Stats_option` FIELDS TERMINATED BY '	' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY ' ' (option_name,option_value)

Does that mean this is a php or MySQL bug? What's adding the additional path?

DB is on separate Ubuntu server, version "5.1.61-0ubuntu0.10.10.1-log"

Thanks in advance for any help or pointers.

Viewing all articles
Browse latest Browse all 4243

Trending Articles