10 2024 档案

摘要:一、MySQL数据库被攻击 登录MySQL总是发现数据库没了,原来是被攻击了,大家看看 主要是自己本地root用户没有做登录限制,导致被攻击。 二、权限限制 1.root用户只允许本机登录,并设置复杂密码->大小写英文+数字+特殊符号+长度大于8 2.开通第二用户,授权 部分数据库的增删改查权限。 阅读全文
posted @ 2024-10-30 17:47 vello 阅读(55) 评论(0) 推荐(0) 编辑
摘要:一、合并字符串 1.字符串合并concat concat(string1,string2...stringN); 2.在合并的相邻字符串间插入一个特殊符号concat_ws concat_ws(separator,string1,string2...stringN); 二、切割字符串 1.分隔符切割 阅读全文
posted @ 2024-10-28 16:34 vello 阅读(11) 评论(0) 推荐(0) 编辑
摘要:一、MySQL的权限 二、权限用法 1.创建用户create user 'admin'@'%' identified by 'your_password'; 可通过navicat加密方式登录 2.创建用户create user 'admin'@'%' identified with mysql_na 阅读全文
posted @ 2024-10-28 14:54 vello 阅读(78) 评论(0) 推荐(0) 编辑
摘要:一、mysql8.0升级了登录密码认证策略 select user,host,plugin from mysql.user; 二、修改密码认证策略 alter user 'admin'@'%' IDENTIFIED with mysql_native_password by 'new_passwor 阅读全文
posted @ 2024-10-28 14:28 vello 阅读(160) 评论(0) 推荐(0) 编辑
摘要:yum 下载rpm包到指定目录,只下载不安装 yum install --downloadonly --downloaddir=路径 安装包名 实例:yum install --downloadonly --downloaddir=/usr/local libXScrnSaver 安装 rpm -U 阅读全文
posted @ 2024-10-18 17:16 vello 阅读(365) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示