摘要: 表空间没有数据时,在lepus.py中的相应位置添加如下语句: if monitor_mysql=="1": job = Process(target = job_run, args = ('check_mysql_bigtable',frequency_monitor)) joblist.append(job) job.sta... 阅读全文
posted @ 2016-10-24 17:06 HarveyB 阅读(374) 评论(0) 推荐(0)
摘要: --ledir=/usr/local/mysql/bin 加上server的 directory https://dev.mysql.com/doc/refman/5.5/en/mysqld-safe.html 阅读全文
posted @ 2016-10-24 11:25 HarveyB 阅读(274) 评论(0) 推荐(0)
摘要: export LD_LIBRARY_PATH=/usr/mysql/lib./configure --prefix=/usr/local/sysbench --with-mysql-includes=/data/eh/mysql/include/ \ --with-mysql-libs=/data/eh/mysql/lib/ --with-mysql=/data/eh/mysql 阅读全文
posted @ 2016-10-23 14:14 HarveyB 阅读(323) 评论(0) 推荐(0)
摘要: 对于连接数的设置,show variables里有三个参数可以对它进行控制,max_connections与max_user_connections以及max_connect_errors。下面对这三个参数相关描述。 max_connections:针对所有的账号所有的客户端并行连接到MYSQL服务的最大并行连接数。简单说是指MYSQL服务能够同时接受的最大并行连接数。 max_user_conn... 阅读全文
posted @ 2016-10-13 09:17 HarveyB 阅读(675) 评论(0) 推荐(0)
摘要: --set-gtid-purged=OFF 阅读全文
posted @ 2016-10-12 15:09 HarveyB 阅读(428) 评论(0) 推荐(0)
摘要: set global innodb-file-format=Barracuda 其它优化,后续补充 阅读全文
posted @ 2016-10-11 21:27 HarveyB 阅读(236) 评论(0) 推荐(0)
摘要: 5.1 不支持同一张表中有多个tmiestamp类型字段的默认值为current_time, 5.6版本无此问题 阅读全文
posted @ 2016-10-11 21:24 HarveyB 阅读(299) 评论(0) 推荐(0)
摘要: [root@localhost ~] # visudo –f /etc/sudoers 在文件中的root账户下添加需要切换root账户的账户 root ALL=(ALL) ALL user ALL=(ALL) ALL 阅读全文
posted @ 2016-10-11 10:27 HarveyB 阅读(243) 评论(0) 推荐(0)
摘要: mysql> use dbl Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A 登录时出现这种情况,一般是有大量库,表,字段需要扫描,会很慢,登录库时可以加上-A参数不进行预读,速度会很快。... 阅读全文
posted @ 2016-10-10 11:44 HarveyB 阅读(1957) 评论(0) 推荐(0)
摘要: 1 innodb引擎表 alter table TABLE_NAME engine='innodb'; 还有一种方法 optiize table TABLE_NAME; http://stackoverflow.com/questions/30635603/what-does-table-does-not-support-optimize-doing-recreate-an... 阅读全文
posted @ 2016-08-30 09:38 HarveyB 阅读(300) 评论(0) 推荐(0)