Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup user login for only one table via phpmysql?

Is there a way to give somebody access via phpmyadmin to ONE table of one database ONLY with different user name and password? If so, how do I set this up?

like image 359
Ronald Wiplinger Avatar asked Oct 29 '25 07:10

Ronald Wiplinger


1 Answers

Yes you can. If you have any errors doing this, you might not have high enough privileges

Using phpmyadmin:

  • Go to the Users tab for the Server
  • Click 'Add user'.
  • Don't grant any global privileges.
  • After you save the user, from the Users overview table, click 'Edit Privileges' for your new user
  • On the next page, don't grant anything. Scroll down and select the database you want
  • On the next page, don't grant anything. Scroll down again and select the Table you want
  • Finally, actually grant privileges for the Table and Columns.
like image 81
dtyler Avatar answered Oct 31 '25 21:10

dtyler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!