神秘果 on 十一月 15th, 2009

Mysql状态变量通过”show global status”(自Mysql上次启动以来的统计)获取,重要的参数包括各种SQL执行频率,索引使用情况、锁资源使用情况等。

长时间运行的Mysql服务器,运行flush status;可以重置一些计数器优化性能。
Read the rest of this entry »
神秘果 on 十一月 11th, 2009

Mysql主从复制是一台服务器充当主服务器,另一台或多台服务器充当从服务器,主机自动复制到从机。对于多级复制,数据服务器即可充当主机,也可充当从机。Mysql复制的基础是主服务器对数据库修改记录二进制日志binlog,从服务器通过主服务器的binlog自动执行更新。

Read the rest of this entry »

神秘果 on 十一月 4th, 2009

TCMallocThread-Caching Malloc)是google-perftools工具中的一个,与标准的glibc库的malloc相比,TCMalloc在内存的分配上效率和速度要高得多,可以提高Mysql服务器在高并发情况下的性能,降低系统负载。

Read the rest of this entry »

神秘果 on 十一月 2nd, 2009

以下是Mysql数据库服务器配置文件/etc/my.cnf的详细配置。应用场合是InnoDB引擎,4CPU 32SUSE

Read the rest of this entry »