How can I restrict a certain user to one table in a MySQL database -


my database standard mysql database provided me web hosting company.

i have tried issue grant command grants select, insert, , update privileges specified user on specific table.

grant select, insert, update on database.table restricteduser 

for reason, kicking error.

#1142 - grant command denied user 'adminuser'@'localhost' table 'tablename' 

i using phpmyadmin hosting company provides should have full admin privs correct?

note- i've edited out actual table names security purposes.

you don't have grant privilege if you're working in shared multitenant mysql database. next move open support ticket hosting company asking them how you're trying do.

don't surprised if say, "we don't allow that." running large-scale multitenant mysql instances risky business, , restricting privileges of user accounts 1 way hosting companies, inexpensive ones, mitigate risk.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -