![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
文章平均质量分 50
kzaaa
菜鸡网安狗
展开
-
【MySQL】创建一个普通用户、赋权
创建用户 create user '用户'@'允许登录的ip' identified by '密码' 在另外一个终端上打开,发现只能查看部分数据库 为用户赋予权限 grant 权限名, 权限名 on 数据库名.数据表 to '用户名'@'ip' 权限名有select insert update drop delete alter create等等,all privileges和all可代替所有 test中就可以看到weiqiumi这个数据库了,但是只能查看数据 撤销用户...原创 2021-10-25 18:23:06 · 291 阅读 · 0 评论 -
【MySQL】进阶:读写文件
条件 my.ini配置文件中的secure_file_priv决定是否可以对文件进行读写,部分高版本(5.6.34以后)mysql中没有secure_file_priv,则默认为不允许读写 其中: 不允许读写:secure_file_priv 或secure_file_priv=NULL 允许读写: secure_file_priv="" 特定文件路径内可读写:secure_file_priv="C://Users/kongs/Desktop" load_file() ..原创 2021-10-25 15:29:36 · 304 阅读 · 0 评论