Forum Moderators: coopster
$db = mysql_connect("localhost","dbUsername","dbPassword");
mysql_select_db("dbName",$db);
$result = mysql_db_query($db,"LOAD DATA infile data.txt INTO TABLE dbTable (dbColumn)") or die (mysql_error());
But it comes up with this error:
Access denied for user: 'blahblah@localhost' to database 'Resource id #1'
Is there something wrong with my code?
Cheers
Chris
Also try using "or die" on all 3 mysql calls while you are developing.
syntax is here GRANT and REVOKE Syntax [mysql.com]
it could very well be that the user you are logging in with doesnt have the proper permissions