Home  >  Article  >  Database  >  mysql给新库分配用跟权限

mysql给新库分配用跟权限

WBOY
WBOYOriginal
2016-06-07 16:25:13851browse

mysql给新库分配用和权限 新建一个库和若干表 然后要给这个库和表分配用户和权限具体操作如下: 1.在mysql库里的user表插入一条用户数据 host username password重点关注 2.接着在mysql库的db表插入一条数据 关联新建user和新建库的关系 host db username重点

mysql给新库分配用和权限
新建一个库和若干表 然后要给这个库和表分配用户和权限具体操作如下:

1.在mysql库里的user表插入一条用户数据 host username password重点关注

2.接着在mysql库的db表插入一条数据 关联新建user和新建库的关系 host db username重点关注

3.执行 flush privileges;命令刷新权限 即可(一定要刷新权限)
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn