给mysql数据添加一个只拥有一张表的权限

grant all privileges on [database].* to 'database'@'localhost' identified by 'password'

例如:

grant all privileges on mytest.* to 'mytest'@'localhost' identified by '123456'

原文地址:https://www.cnblogs.com/huanhang/p/7350750.html