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? 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? 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. Link to comment https://forums.phpfreaks.com/topic/64119-access-denied/#findComment-319577 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.