存档
XtraDB storage engine release 1.0.6-9
Dear Community,
As of today Release 9 of XtraDB storage engine is available.
The release includes following new features:
- The release is base on 1.0.6 version of InnoDB plugin.
- MySQL 5.1.42 as a base release
- Separate purge thread and LRU dump is implemented (this feature was actually added in Release 8, but somehow it was forgotten)
- New patch innodb_relax_table_creation
- Added extended statistics to slow log
- Adjust defaults with performance intention
- Added parameter to control checkpoint age
- Added recovery statistics output when crash recovery (disabled by default)
- Patch to dump and restore innodb_buffer_pool
MyISAM和InnoDB的插入性能测试
测试表结构:
CREATE TABLE `test` (
`ID` bigint(20) NOT NULL auto_increment,
`INT_A` int(11) default NULL,
`INT_B` int(11) default NULL,
`INT_C` int(11) default NULL,
`STRING_A` varchar(50) default NULL,
`STRING_B` varchar(250) default NULL,
`STRING_C` varchar(700) default NULL,
PRIMARY KEY (`ID`),
KEY `IDX_TEST_IA` (`INT_A`),
KEY `IDX_TEST_IB` (`INT_B`),
KEY `IDX_TEST_SA` (`STRING_A`,`INT_C`)
) ;
数据量:总共10个表,每个表插入400w数据
并发数:每个表并发20个线程去执行插入操作,总共200个线程
阅读全文…
备忘,mysql的filesort
{原创}nginx错误排查不断更新ing
DEBUG NO01:
背景:
服务器环境:
nginx 0.7.52
php 5.2.8
mysql 5.1.32
gcc gcc4
linux X86
阅读全文…
MySQL配置文件my.cnf 例子最详细翻译,可以保存做笔记用。
MYSQL优化之优化参数thread_cache_size
http://ceo.xwschool.net/blog/blog?do-showone-tid-176.html
以下是某门户网站的mysql状态实例及分析过程,绝对的第一手数据资料,很生动的体现了参数thread_cache_size优化的效果及优化该参数的必要性,希望对各位系统管理员能有帮助。
说明:
根据调查发现以上服务器线程缓存thread_cache_size没有进行设置,或者设置过小,这个值表示可以重新利用保存在缓存中线程的数量,当断开 连接时如果缓存中还有空间,那么客户端的线程将被放到缓存中,如果线程重新被请求,那么请求将从缓存中读取,如果缓存中是空的或者是新的请求,那么这个线 程将被重新创建,如果有很多新的线程,增加这个值可以改善系统性能.通过比较 Connections 和 Threads_created 状态的变量,可以看到这个变量的作用。(–>表示要调整的值) 根据物理内存设置规则如下:
1G —> 8
2G —> 16
3G —> 32
>3G —> 64
| Mysql参数thread_cache_size状态表及优化调整 |
[转载]装MYSQL时遇到的错误归档(随时更新)
[转载]http://blog.chinaunix.net/u/29134/showart_432764.html
今天我升级MYSQL到5.1的时候遇到的。写出来共享以下。
1、
[root@localhost mysql]# scripts/mysql_install_db
Neither host ‘localhost.localdomain’ nor ‘localhost’ could be looked up with
/resolveip
Please configure the ‘hostname’ command to return a correct
hostname.
If you want to solve this at a later stage, restart this script
with the –force option
阅读全文…
mysql-Got a packet bigger than ‘max_allowed_packet’ bytes
mysql4.1以上版本连接时出现Client does not support authentication protocol问题解决办法
shell> mysql Client does not support authentication protocol requested by server; consider upgrading MySQL client 官方的说法是 MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients. ….. 如果你升级mysql到4.1以上版本后遇到以上问题,请先确定你的mysql client 是4.1或者更高版本.(WINDOWS下有问题你就直接跳到下面看解决方法了,因为MYSQL 在WINDOWS是client和server一起装上了的) 请使用以下两种方法之一 其一: mysql> SET PASSWORD FOR -> ’some_user’@’some_host’ = OLD_PASSWORD(’newpwd’); 其二: mysql> UPDATE mysql.user SET Password = OLD_PASSWORD(’newpwd’) -> WHERE Host = ’some_host’ AND User = ’some_user’; mysql> FLUSH PRIVILEGES; 上面红色的部分请按自己实际情况修改….这样做后,连接就会正常了@!
最近评论