Make a single table in mysql read-only

前端 未结 2 1867
情歌与酒
情歌与酒 2020-12-09 10:07

How can I make a single table in mysql read only for a user while he still has write access to other tables in the same db?

Additional info

  • I have root
2条回答
  •  旧时难觅i
    2020-12-09 10:29

    You can make a single MyISAM table read only by compressing the table. Use myisampack on the command line to pack the table.

    More info can be found in the MySQL Manual: http://dev.mysql.com/doc/refman/5.0/en/myisampack.html

提交回复
热议问题