05 2019 档案

摘要:show variables like '%max_connections%'; 查看最大连接数 set GLOBAL max_connections = 200; 调整最大连接数 阅读全文
posted @ 2019-05-28 16:30 哦~杰克 阅读(148) 评论(0) 推荐(0) 编辑
摘要:mysqldump --databases 库名 >/tmp/backup/xxx.sql (此处为备份目录) 5.7版本不需要指定用户名和密码,将用户名和密码写在/etc/my.cnf中 vim /etc/my.cnf [mysqldump]user=用户password=密码 阅读全文
posted @ 2019-05-27 16:59 哦~杰克 阅读(429) 评论(0) 推荐(0) 编辑
摘要:wget repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm 下载yum源 rpm -ivh zabbix-release-3.2-1.el7.noarch.rpm yum install -y z 阅读全文
posted @ 2019-05-23 11:39 哦~杰克 阅读(123) 评论(0) 推荐(0) 编辑
摘要:setenforce 0 临时关闭selinux systemctl stop firewalld.service 临时关闭防火墙 rm -f /var/run/yum.pid 干掉yum进程,yum则可继续使用 yum -y install httpd 安装apache 服务 systemctl 阅读全文
posted @ 2019-05-22 14:52 哦~杰克 阅读(197) 评论(0) 推荐(0) 编辑
摘要:desc mysql.user; 阅读全文
posted @ 2019-05-22 10:30 哦~杰克 阅读(483) 评论(0) 推荐(0) 编辑
摘要:5.7.27版本更新语法 use mysql; UPDATE mysql.user SET authentication_string=PASSWORD('passwd') where USER='root'; flush privileges; (刷新权限) select * from mysql 阅读全文
posted @ 2019-05-22 10:29 哦~杰克 阅读(7634) 评论(0) 推荐(0) 编辑
摘要:grant select on *.* to 'username'; 赋予查询权限 grant all privileges on *.* to 'username' @"%" identified by "123" 赋予所有权限 阅读全文
posted @ 2019-05-22 10:18 哦~杰克 阅读(1868) 评论(0) 推荐(0) 编辑
摘要:set password for 'username' =password ('PW'); commit; 阅读全文
posted @ 2019-05-22 10:10 哦~杰克 阅读(151) 评论(0) 推荐(0) 编辑
摘要:CREATE USER '用户名' IDENTIFIED BY '密码'; 如:CREATE USER 'kfcx' IDENTIFIED BY 'kfcx123'; 阅读全文
posted @ 2019-05-14 11:13 哦~杰克 阅读(6995) 评论(0) 推荐(0) 编辑
摘要:alter table 表名 modify column 表字段 类型(长度); 如:alter table cs_nssb_fbdz modify column dzbdm varchar(50); 将表 table cs_nssb_fbdz 的 dzbdm 字段调整成长度50 char 定义固定 阅读全文
posted @ 2019-05-14 11:04 哦~杰克 阅读(509) 评论(0) 推荐(0) 编辑
摘要:systemctl restart zabbix-agent.service 阅读全文
posted @ 2019-05-06 16:48 哦~杰克 阅读(4747) 评论(0) 推荐(0) 编辑
摘要:fdisk (查看物理磁盘大小) df (查看文件系统,也就是正在使用磁盘大小) lsblk (查看逻辑磁盘大小) 阅读全文
posted @ 2019-05-06 16:19 哦~杰克 阅读(1752) 评论(0) 推荐(0) 编辑
摘要:systemctl restart rsyslog 阅读全文
posted @ 2019-05-06 16:04 哦~杰克 阅读(1110) 评论(0) 推荐(0) 编辑
摘要:ps aux | sort -rn -k4 | head -10 (进程) ps aux|head -1;ps aux|grep -v PID|sort -rn -k +4|head (内存) 阅读全文
posted @ 2019-05-06 16:01 哦~杰克 阅读(476) 评论(0) 推荐(0) 编辑
摘要:http://www.zsythink.net/archives/500 阅读全文
posted @ 2019-05-06 10:15 哦~杰克 阅读(159) 评论(0) 推荐(0) 编辑

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