The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

phpMyAdmin GRANT SELECT on one table in DB?

Discussion in 'Database Discussions' started by gogy82, Apr 23, 2015.

  1. gogy82

    gogy82 Registered

    Joined:
    Apr 23, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Europe
    cPanel Access Level:
    Root Administrator
    Hello guys

    I wanted to grant select privileges to user on one table only

    tried this way with root user trough WHM->cPanel->phpMyAdmin

    Code:
    GRANT SELECT ON dbname.tblname to 'dbuser'
    Error
    Code:
     #1142 - GRANT command denied to user 'cpses_im2lk8XfRe'@'localhost' for table 'tblname'
    How to GRANT SELECT on one table only to user? I don't want this user to see all tables.

    Thank you

    Kind regards
    Goran
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    I could not reproduce this issue on a test machine. Are you accessing Web Host Manager directly, and as "root"? Also, do you experience the same issue through the command line via SSH?

    Thank you.
     
Loading...

Share This Page