Hi,
I use a Linux, shared hosting setup on GoDaddy. I am trying to bulk load a text file into an existing table using the LOAD DATA INFILE command. Everything works great on my development platform but when I run the script at GoDaddy, I get the error: "Access denied for user.'username@%' (Using password: YES)". I've called GoDaddy support several times and they haven't been able to help me.
The abbreviated version of my code is as follows:
<?php
require_once('include/conn.php') ; // db connection settings
?>
<?php
// Open the database connection
mysql_select_db($db, $db_instance);
$sqlstr = "LOAD DATA INFILE 'industry.txt'
INTO TABLE industry
( NAICS_CODE,
NAICS_DESC,
NAICS_DISP ); " ;
$rs = mysql_query($sqlstr, $db_instance) or die(mysql_error());
?>
The source text file is in the same directory as my php script. My database connection works fine for all other commands (i.e., insert, update, select).
Any pointers would be GREATLY appreciated!!!!
Thanks,
Nathan