how a normal user can "load a data into the table" ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • santhanalakshmi
    New Member
    • May 2009
    • 147

    how a normal user can "load a data into the table" ?

    hi,

    I have created a new user in mysql by the root user.
    user:san
    password:san

    when i login into mysql as a normal user :

    Code:
          shell> mysql  -u san -psan databasename


    Now,i am trying to use

    Code:
     mysql>load data infile 'C:/text.txt' into table born fields terminated by ',' lines terminated by '\r\n';


    Error msg:

    Access denied for use san@loacalhost( using password 'YES')


    But i have GRANTED ALL PRIVILEGES for the user.But its working very finely if i login as a ROOT user.

    A normal user :
    1.cant create a new user
    2.cant create a new database
    3.cant change a password
    4.cant use "LOAD data " also va............. .......

    only they can do "SELECT,INSERT, UPDATE,DELETE.. ..."
  • mwasif
    Recognized Expert Contributor
    • Jul 2006
    • 802

    #2
    Originally posted by santhanalakshmi
    But i have GRANTED ALL PRIVILEGES for the user.But its working very finely if i login as a ROOT user.
    How did you GRANTED ALL PRIVILEGES?

    Originally posted by MySQL Manual
    For security reasons, when reading text files located on the server, the files must either reside in the database directory or be readable by all. Also, to use LOAD DATA INFILE on server files, you must have the FILE privilege.

    Comment

    • santhanalakshmi
      New Member
      • May 2009
      • 147

      #3
      hi,

      I got it .Thanks for your response.

      Comment

      Working...