Home > Database > Mysql Tutorial > body text

mysql给新库分配用跟权限

WBOY
Release: 2016-06-07 16:25:13
Original
855 people have browsed it

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;命令刷新权限 即可(一定要刷新权限)
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!