scheols Posted August 9, 2007 Share Posted August 9, 2007 I tried this query: <?php include("config.php"); $load_data = mysql_query("LOAD DATA INFILE 'sql.txt' INTO TABLE `loadata`;") or die(mysql_error()); ?> sql.txt INSERT INTO `loadata` (`text`) VALUES('example'); INSERT INTO `loadata` (`text`) VALUES('example'); INSERT INTO `loadata` (`text`) VALUES('example'); INSERT INTO `loadata` (`text`) VALUES('example'); INSERT INTO `loadata` (`text`) VALUES('example'); INSERT INTO `loadata` (`text`) VALUES('example'); INSERT INTO `loadata` (`text`) VALUES('example'); INSERT INTO `loadata` (`text`) VALUES('example'); I get access denied: Access denied for user 'scheols_HIDDEN'@'localhost' (using password: YES) My host said they don't restrict it so does anyone know whats up? Quote Link to comment https://forums.phpfreaks.com/topic/64119-access-denied/ Share on other sites More sharing options...
frost Posted August 9, 2007 Share Posted August 9, 2007 Is that semicolon in the right spot? <?php include("config.php"); $load_data = mysql_query("LOAD DATA INFILE 'sql.txt' INTO TABLE `loadata`;") or die(mysql_error()); ?> should be <?php include("config.php"); $load_data = mysql_query("LOAD DATA INFILE 'sql.txt' INTO TABLE `loadata`"); or die(mysql_error()); ?> I think? Quote Link to comment https://forums.phpfreaks.com/topic/64119-access-denied/#findComment-319573 Share on other sites More sharing options...
jcombs_31 Posted August 9, 2007 Share Posted August 9, 2007 you need to check your config file and make sure you are connecting correctly to your DB. Quote Link to comment https://forums.phpfreaks.com/topic/64119-access-denied/#findComment-319577 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.