上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 31 下一页
摘要: 安装 python 连接MySQL数据库的模块:3.x : MySQL-python (pymysql)2.x : PyMySQL (MySQLdb)2.x 安装:报错:pip install MySQL-pythonerror: command 'gcc' failed with exit status 1解决:yum install -y python-develpi... 阅读全文
posted @ 2016-12-15 22:03 xuanhui 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1、 命令 全路径 (eg:which mysql) 2、执行脚本 (脚本中加上#!/bin/bash) eg: /bin/bash script.sh 3、 输出信息(>>) 使用全路径 eg: /script/a.txt 阅读全文
posted @ 2016-12-15 21:56 xuanhui 阅读(136) 评论(0) 推荐(0) 编辑
摘要: #密码过期时间180天chage -M 180 rootchage -l rootchage -M 180 gwchage -l gw 阅读全文
posted @ 2016-12-15 21:51 xuanhui 阅读(921) 评论(0) 推荐(0) 编辑
摘要: scp -rp -P22 test.txt root@xxxx:/tmp/ scp -rp -P22 root@xxxx:/tmp/1.txt ./ 阅读全文
posted @ 2016-12-15 21:49 xuanhui 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 由端口到进程: 直接查看进程: 查看本机连接端口: 杀进程: (eg:kill httpd) tskill 1596 阅读全文
posted @ 2016-12-15 21:43 xuanhui 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 安装: yum search mysql """mysql-server mysql mysql-devel mysql-community-server""" 自定义yum安装mysql在配置文件中定义,再启动 密码: the first passwd in : /var/log/mysqld.l 阅读全文
posted @ 2016-12-15 21:29 xuanhui 阅读(348) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2016-12-14 23:03 xuanhui 阅读(4) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2016-12-14 21:48 xuanhui 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 1、需要提升为主的从库,停止io线程等待slave数据全部更新完毕 stop slave IO_THREAD #show processlist的输出,直到看到状态是Slave has read all relay log; waiting for the slave I/O thread to u 阅读全文
posted @ 2016-11-06 21:14 xuanhui 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 一、日志切割 原理: 1、cp一个慢日志备份 2、清空原理的慢日志 3、写成脚本,每天一切,这样就ok啦 二、查找日志中的慢日志 1、做了日志切割(慢日志文件就小了) 2、查找某个时间的慢日志 日志时间格式: # Time: 161102 3:50:14 用grep过滤: grep -A15 "Ti 阅读全文
posted @ 2016-11-06 21:09 xuanhui 阅读(196) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 31 下一页