LOAD DATA LOCAL INFILE failing - Advanced Installer Community
brrman
Posts: 11
Joined: Tue Jun 24, 2014 11:26 pm

LOAD DATA LOCAL INFILE failing

Hi there

I have been running my LOAD DATA scripts successfully in advanced Installer using LOAD DATA INFILE command.
I recently tried using LOAD DATA LOCAL INFILE because we will need to be able to run data files not on the server. The script fails when run.

I have run the LOCAL version of the script successfully in MYSQL Workbench, so I know the script will run on the server via a client. I don't understand why it will not work in Advanced Installer.

Works:
LOAD DATA INFILE 'C:/my_path/my_file.txt' INTO TABLE fdb_my_table CHARACTER SET LATIN1 FIELDS TERMINATED BY '|' LINES TERMINATED BY '\r\n'

Fails:
LOAD DATA LOCAL INFILE 'C:/my_path/my_file.txt' INTO TABLE fdb_my_table CHARACTER SET LATIN1 FIELDS TERMINATED BY '|' LINES TERMINATED BY '\r\n'

NOTE : My setup right now is that the server and files are on the same computer, but we need to allow for the possibility of the server being elsewhere while the files are local - this is why I need to use the LOCAL keyword.

thanks
Bryan
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: LOAD DATA LOCAL INFILE failing

Hello Bryan,

Please give us some time to test and investigate the scenario and I'll get back to you when I'll have more insights.

Thank you for your patience and understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
brrman
Posts: 11
Joined: Tue Jun 24, 2014 11:26 pm

Re: LOAD DATA LOCAL INFILE failing

Thanks, Daniel.

I am conducting tests today with other people on other machines in an attempt to determine if this is specific to my machine or if it is a broader issue.
Any help you can give me is much appreciated.

Bryan
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: LOAD DATA LOCAL INFILE failing

Hello Bryan,

I've tested the scenario and I was able to replicate the behavior too. I'm not so sure what is the root cause of this behavior, thus I've opened a ticket in our bug tracking system so our development team investigate further this. I'll notify you as soon as we have any updates.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
brrman
Posts: 11
Joined: Tue Jun 24, 2014 11:26 pm

Re: LOAD DATA LOCAL INFILE failing

Thank you, Daniel. It's good to know I am not going crazy! :lol:
We have also replicated this issue on other machines in our dev team.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: LOAD DATA LOCAL INFILE failing

Hello Bryan,

After further investigations it seems this behavior is caused by a BUG of the MySQL ODBC Driver. Our "SQL Databases" support uses ODBC drivers to connect to SQL servers and it seems when the "LOAD DATA LOCAL INFILE" statement is used the MySQL ODBC driver crashes due to the above bug. I'm afraid the only workaround would be to try developing your own custom action which will connect to MySQL server without using the ODBC driver.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”