When I enter 'LOAD DATA INFILE 'imptest.txt' INTO TABLE imptest' directly into phpmyadmin I get the following error
Access denied for user: 'me@localhost' (Using password: YES)
Yet when I use the following php code, it opens the same file without any problem.
$url = '../../imptest.txt';
$fp = fopen ($url, 'r') or die ('Cannot access file.');
I am new to mysql and don't understand why I'm getting an access denied error. Do you normally have to supply a password with 'load data infile'? If so, how?
I am using a remote server running version 3.23.49.
Thanks
Access denied for user: 'me@localhost' (Using password: YES)
Yet when I use the following php code, it opens the same file without any problem.
$url = '../../imptest.txt';
$fp = fopen ($url, 'r') or die ('Cannot access file.');
I am new to mysql and don't understand why I'm getting an access denied error. Do you normally have to supply a password with 'load data infile'? If so, how?
I am using a remote server running version 3.23.49.
Thanks