下载此文档

mysql面试必看.doc


文档分类:IT计算机 | 页数:约7页 举报非法文档有奖
1/7
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/7 下载此文档
文档列表 文档介绍
mysql 面试必看 My favorite question during Interview for people to work as mysql DBAs or be involved with MySQL Performance in some way is to ask them what should be tuned in MySQL Server straight after installation, assuming it was installed with default settings. 在面试 MySQL DBA 或者那些打算做 MySQL 性能优化的人时, 我最喜欢问题是: MySQL 服务器按照默认设置安装完之后, 应该做哪些方面的调节呢? I’m surprised how many people fail to provide any reasonable answer to this question, and how many servers are where in wild which are running with default settings. 令我很惊讶的是, 有多少人对这个问题无法给出合理的答案, 又有多少服务器都运行在默认的设置下。 Even though you can tune quite a lot of variables in MySQL Servers only few of them are really important for mon workload. After you get these settings right other changes will monly offer only incremental performance improvements. 尽管你可以调节很多 MySQL 服务器上的变量, 但是在大多数通常的工作负载下, 只有少数几个才真正重要。如果你把这些变量设置正确了, 那么修改其他变量最多只能对系统性能改善有一定提升。 key_buffer_size - Very important if you use MyISAM tables. Set up to 30-40% of available memory if you use MyISAM tables exclusively. Right size depends on amount of indexes, data size and workload - remember MyISAM uses OS cache to cache the data so you need to leave memory for it as well, and data can be much larger than indexes in many cases. Check however if all of key_buffer is used over time - it is not rare to see key_buffer being set to 4G bined size of .MYI files is just 1GB. This would be just a waste.

mysql面试必看 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数7
  • 收藏数0 收藏
  • 顶次数0
  • 上传人xxj16588
  • 文件大小0 KB
  • 时间2016-05-09