摘要:
php 发送json post function json_post($url, $data = NULL) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_SSL_VE 阅读全文
摘要:
/** * 验证密码 * @param $password * @return bool */ public static function checkPassword($password) { //$search = '/^[-_a-zA-Z0-9]{6,20}$/'; //密码至少8位,包括数字 阅读全文
摘要:
linux按照时间查找文件 需要用到一个根据最后修改时间来处理的脚本。 前面有个有关find的基本用法,根据文件大小,类型什么的,这个是关于时间的。 linux 文件的三种时间(以 find 为例): atime 最后一次访问时间, 如 ls, more 等, 但 chmod, chown, ls, 阅读全文
摘要:
htop htop 安装情况 安装epel源 yum install epel-release 安装htop yum install -y htop 安装完毕后命令行输入 htop 阅读全文
摘要:
MYSQL默认的table_open_cache为64,这个数值是偏小的,如果max_connections较大,则容易引起性能问题。 表现:数据库查询效率慢,show processlist 发现比较多的查询正在opening table。 进一步确认,执行以下语句: mysql> show gl 阅读全文
摘要:
可以通过检查table_locks_waited和table_locks_immediate状态变量来分析系统上的表锁定争夺 如果table_locks_waited值比较高,则说明表级锁争用比较严重 mysql> show status like 'table%'; + + + | Variabl 阅读全文
摘要:
mysqladmin -uroot -p123456 -i 1 processlist 查看mysql在进行的进程 每秒更新一次 如果找不到mysqladmin 命令,到目录/usr/local/mysql/bin/mysqladmin 阅读全文
摘要:
MySQL配置文件:/etc/my.cnf http://c.biancheng.net/view/7571.html 阅读全文
摘要:
mysql> set global innodb_print_all_deadlocks = ON; Query OK, 0 rows affected (0.00 sec) mysql> show variables like 'innodb_print_all_deadlocks'; + + + 阅读全文
摘要:
14.18.2 InnoDB 恢复 本章节讲述InnoDB表恢复。内容包括: Point-in-Time恢复 从数据损坏或磁盘故障恢复 InnoDB崩溃恢复 崩溃恢复中的表空间发现(5.7引进) Point-in-Time恢复 从物理备份创建的时间节点开始恢复InnoDB库到当前时间,MySQL服务 阅读全文