lilman Posted November 28, 2006 Share Posted November 28, 2006 Error Access denied for user 'lilman_sds'@'localhost' (using password: YES) with query SELECT * INTO OUTFILE 'http://www.url.com/spreadsheet.xls' FROM surveryThat is the error I am recieving when I try to execute this SQL statement:$export="SELECT * INTO OUTFILE 'http://www.url.com/spreadsheet.xls' FROM survery";Now my user has all privileges, so does anyone have an idea as to why I am getting this problem? Link to comment https://forums.phpfreaks.com/topic/28802-trying-to-download-table-but-access-is-denied/ Share on other sites More sharing options...
PHPSpirit Posted November 28, 2006 Share Posted November 28, 2006 You need use a FILE PATH for outfile no URL.$export="SELECT * INTO OUTFILE '/home/user/spreadsheet.xls' FROM survery"; Link to comment https://forums.phpfreaks.com/topic/28802-trying-to-download-table-but-access-is-denied/#findComment-131874 Share on other sites More sharing options...
lilman Posted November 29, 2006 Author Share Posted November 29, 2006 Alright, thank you for your reply. I changed it to '/home2/user/public_html/spreadsheet.xls' and I still get the same error. Link to comment https://forums.phpfreaks.com/topic/28802-trying-to-download-table-but-access-is-denied/#findComment-131876 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.