ERROR 1045 (28000): Access denied

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ajd335
    New Member
    • Apr 2008
    • 123

    ERROR 1045 (28000): Access denied

    Hi all...

    I am working with PHP and mysql. I have one form from which i am importing data into the table.
    Now i want "email " field result into a text file
    I am using code
    [code=sql]

    select email from table_1 into outfile '/location/result.txt';

    [/Code]

    but when i run that query ,it gives me that error..ERROR 1045 (28000): Access denied error....and whether it is a right query or not...plz help me
  • ck9663
    Recognized Expert Specialist
    • Jun 2007
    • 2878

    #2
    Try posting in MySQL forum.

    If you can run the query and the error is access denied, I'd say the credentials that's trying to create the text file does not have the necessary rights.

    -- CK

    Comment

    Working...