0

I Have a database with lots of tables and read_only enabled in the config, is it possible to set a single table to be writable?

1 Answer 1

0

I don't believe you can do read_only = 1 (except for table x);

So I would think your best option would be to set all your users to read_only:

GRANT SELECT ON *.* TO 'user'@'1.2.3.4';

Then the users that need to write to that table would be given permission to write to just that table. e.g.

GRANT INSERT, UPDATE ON 'dbname.tablename'@'1.2.3.4';

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.