国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

MySQL 5.5.49 大內存優化配置文件優化詳解

2024-07-24 12:44:41
字體:
來源:轉載
供稿:網友

一、配置文件說明

my-small.cnf
my-medium.cnf
my-large.cnf
my-huge.cnf
my-innodb-heavy-4G.cnf 

二、詳解 my-innodb-heavy-4G.cnf
三、配置文件優化
注:環境說明,CentO5.5 x86_64+MySQL-5.5.32 相關軟件下載:http://yunpan.cn/QtaCuLHLRKzRq

一、配置文件說明

Mysql-5.5.49是Mysql5.5系列中最后一個版本,也是最后一個有配置文件的版本,為什么這么說呢,用過5.6的博友都知道,在mysql5.6中已經不提供配置文件選擇,只有一個默認的配置文件,好了,我們今天說的是5.5.49這個版,就不和大家說5.6了,下面我們來具體說一下,mysql5.5.49中,提供可選的幾個配置文件,
my-small.cnf
my-medium.cnf
my-large.cnf
my-huge.cnf
my-innodb-heavy-4G.cnf

下面我們就來分別的看一下^_^……
1.my-small.cnf

[root@mysql support-files]# vim my-small.cnf# Example MySQL config file for small systems.# This is for a system with little memory (<= 64M) where MySQL is only used # from time to time and it's important that the mysqld daemon # doesn't use much resources.

這是my-small.cnf配置文件中開頭的簡介,它說明了,這個配置文件是在內存小于等于64M時使用的,小型數據庫系統,目的是不占更多的系統資源!
2.my-medium.cnf

[root@mysql support-files]# vim my-medium.cnf# Example MySQL config file for medium systems.# This is for a system with little memory (32M - 64M) where MySQL plays # an important part, or systems up to 128M where MySQL is used together with # other programs (such as a web server)

這個配置文件是中型數據系統使用,內存在128M左右!
3.my-large.cnf

[root@mysql support-files]# vim my-large.cnf# Example MySQL config file for large systems. # This is for a large system with memory = 512M where the system runs mainly # MySQL.

這個配置文件是大型數據庫系統使用,內存在512M左右!
4.my-huge.cnf

[root@mysql support-files]# vim my-huge.cnf# Example MySQL config file for very large systems. # This is for a large system with memory of 1G-2G where the system runs mainly # MySQL.

這個配置文件是巨型數據庫系統使用,內存在1G-2G左右!
5.my-innodb-heavy-4G.cnf

[root@mysql support-files]# vim my-innodb-heavy-4G.cnf#BEGIN CONFIG INFO #DESCR: 4GB RAM, InnoDB only, ACID, few connections, heavy queries #TYPE: SYSTEM #END CONFIG INFO# This is a MySQL example config file for systems with 4GB of memory # running mostly MySQL using InnoDB only tables and performing complex # queries with few connections.

這個配置文件主要作用是,支持4G內存,支持InnoDB引擎,支持事務(ACID)等特性所使用!
說明:ACID,指數據庫事務正確執行的四個基本要素的縮寫。包含:原子性(Atomicity)、一致性(Consistency)、隔離性(Isolation)、持久性(Durability)!

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 广丰县| 全椒县| 偏关县| 汉中市| 宁陵县| 进贤县| 浦江县| 宜宾县| 襄汾县| 微山县| 重庆市| 穆棱市| 钟祥市| 固始县| 虎林市| 吉木萨尔县| 临洮县| 星座| 鹤庆县| 岑巩县| 亳州市| 南郑县| 武强县| 同德县| 新野县| 蕉岭县| 罗城| 武川县| 上思县| 玉门市| 和平区| 柳林县| 岚皋县| 比如县| 天峨县| 广宗县| 治县。| 武定县| 满洲里市| 昆明市| 苍溪县|