Jump to content

Access Denied.


scheols

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.