MySQL user access - table specific

老子叫甜甜 提交于 2019-12-20 02:38:17

问题


How do I give a user access to specific tables within a MySQL database?


回答1:


grant select on table to username



回答2:


Find the below example, Modify it according to your needs.
GRANT SELECT ON db_base.* TO db_user@'localhost' IDENTIFIED BY 'db_passwd';



来源:https://stackoverflow.com/questions/4300525/mysql-user-access-table-specific

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!