站长博客
站长博客随手笔记
Toggle navigation
站长博客
Home
MacOS
Database
Linux
PHP
Git
Golang
About Me
Archives
Tags
MySQL 命令行下创建用户和授权
MySQL
2018-11-23 00:09:52
227
0
0
admin
MySQL
创建用户: ```sql CREATE USER 'admpub'@'localhost' IDENTIFIED BY 'password'; ``` 授权: ```sql GRANT ALL ON admpub.* TO 'admpub'@'localhost'; ``` 只读授权: ```sql GRANT SELECT ON *.* TO admpub@'%' IDENTIFIED BY 'test'; ``` 使授权生效: ``` FLUSH PRIVILEGES; ```
Prev:
Docker 修改已有镜像(commit )
Next:
二进制文件类型判断(无后缀情况)
0
likes
227
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Table of content