1.使用mysql命令登录root用户
2.创建新用户
2.1.方法一 linux命令行创建mysql新用户
备注上面@后的命令解释
这样的创建命令,默认会看到下面的两个库,看不到任何其它的数据库:
2.2.方法2 使用mysql客户端HeidiSql创建
使用root用户登录mysql数据库
2.2.1 点击角色用户头像
2.2.2. 添加
点击保存即可
3.给用户授予权限
备注
example1
给mindoc_db_read用户对mindoc_db所有表的查询权限
备注上面@后的命令解释
这样的创建命令,默认会看到下面的两个库,看不到任何其它的数据库:
使用root用户登录mysql数据库
点击保存即可
备注
example1
给mindoc_db_read用户对mindoc_db所有表的查询权限
上一篇:redis使用教程
下一篇:jmeter的下载.安装.汉化
在某些情况下,需要为用户添加特定的权限,例如 ALTER VIEW 权限,以允许他们修改视图。
1,基本操作要求实现用户账号的管理,要完成的工作主要有如下几个方面:· 用户账号的添加、删除与修改。· 用户口令的管理。· 用户组的管理。2,用户账户添加删除和修改 用户账户添加:useradd 选项 用户名 
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M