
MySql优化
盒马coding
这个作者很懒,什么都没留下…
展开
-
MySql优化
网上有不少mysql 性能优化方案,不过,mysql的优化同sql server相比,更为麻烦与复杂,同样的设置,在不同的环境下 ,由于内存,访问量,读写频率,数据差异等等情况,可能会出现不同的结果,因此简单地根据某个给出方案来配置mysql是行不通的,最好能使用 status信息对mysql进行具体的优化。mysql> show global status; 可以列转载 2015-01-18 01:31:46 · 477 阅读 · 0 评论 -
MySql优化之my.ini 中文配置详解
MYSQL服务器my.cnf配置文档详解硬件:内存16G[client]port = 3306socket = /data/3306/mysql.sock[mysql]no-auto-rehash[mysqld]user = mysqlport = 3306socket = /data/3306/mysql.sockbasedir = /usr/lo转载 2016-11-30 23:19:16 · 5457 阅读 · 0 评论 -
MySql优化
原创 2016-01-03 22:26:43 · 440 阅读 · 0 评论 -
MySql优化执行语句
1、整理查询缓冲区里的碎片>flush query cache;2、查询mysql当前执行的sql语句show processlist;3、显示排序的统计的信息 show status like ' sort% '; 如果 sort_merge_passes 很大,就表示需要注意sort_buffer_si原创 2015-01-24 17:36:34 · 536 阅读 · 0 评论 -
MySql优化之my-large.ini配置
# Example MySQL config file for large systems.## This is for a large system with memory = 512M where the system runs mainly# MySQL.## You can copy this file to# /etc/my.cnf to set global o原创 2015-01-23 09:29:00 · 659 阅读 · 0 评论 -
MySql优化之my-innodb-heavy-4G.ini配置
#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# ru原创 2015-01-23 09:28:12 · 2317 阅读 · 0 评论 -
MySql优化之my-template.ini配置
## MySQL Server Instance Configuration File Template## ----------------------------------------------------------------------## Version 1.0.1#### Lines that starts like this are comments and w原创 2015-01-23 09:28:01 · 889 阅读 · 0 评论 -
MySql优化之my-small.ini配置
# MySQL Server Instance Configuration File# ----------------------------------------------------------------------# Generated by the MySQL Server Instance Configuration Wizard### Installatio原创 2015-01-23 09:26:03 · 895 阅读 · 0 评论 -
MySql优化之my-medium.ini配置
# 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 wit原创 2015-01-23 09:30:15 · 479 阅读 · 0 评论 -
MySql优化之my-huge.ini配置
# 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.## You can copy this file to# /etc/my.cnf to set g原创 2015-01-23 09:27:16 · 1009 阅读 · 0 评论 -
MySql优化之my.ini配置
# MySQL Server Instance Configuration File# ----------------------------------------------------------------------# Generated by the MySQL Server Instance Configuration Wizard### Installatio原创 2015-01-23 09:25:37 · 1071 阅读 · 0 评论 -
MySql配置信息的详解
MySQL支持不同的存储引擎,主要使用的有MyISAM和InnoDB。4.1 MyISAM MyISAM管理非事务表。它提供高速存储和检索,以及全文搜索能力。MyISAM在所有MySQL配置里被支持,它是默认的存储引擎,除非配置MySQL默认使用另外一个引擎。4.1.1 MyISAM特性 4.1.1.1 MyISAM Properties1) 不支持事务,宕机会破坏表2)原创 2015-01-22 09:55:28 · 796 阅读 · 0 评论 -
mysql数据库FULLTEXT索引的用法和作用
注意事项: 1、MySQL 4.x版本及以上版本提供了全文检索(备注:FULLTEXT)支持,但是表的存储引擎类型必须为MyISAM。 2、创建方法: 修改表结构添加全文索引ALTER TABLE article ADD FULLTEXT index_content(content)原创 2015-01-22 09:49:08 · 1915 阅读 · 0 评论 -
MySql优化之my-innodb-heavy-4G.ini 中文配置详解
#开始配置信息#描述:4GB 内存、只有 InnoDB、ACID、几个连接数、繁重的查询#类型:系统#结束配置信息# 这是一个针对 4G 内存系统(主要运行只有 InnoDB 表的 MySQL 并使用几个连接数执行复杂的查询)的 MySQL 配置文件例子。## 你可以复制该文件到 /etc/my.cnf 以设置全局的选项,复制到 mysql-data-dir/my.原创 2016-11-30 23:20:31 · 3184 阅读 · 0 评论