mysql查询缓慢SQL State:Copying to tmp table
2012-07-31 09:33
411 查看
平台:
OS:CentOS6.2
DB Version:MySQL 5.5.24
现象:
页面查询缓慢
处理过程:
show processlist;
非常多语句SQL State:Copying to tmp table
查询tmp_table_size 为默认16M
mysql> show variables like '%tmp%';
+-------------------+----------+
| Variable_name | Value |
+-------------------+----------+
| max_tmp_tables | 32 |
| slave_load_tmpdir | /tmp |
| tmp_table_size | 16777216 |
| tmpdir | /tmp |
+-------------------+----------+
4 rows in set (0.00 sec)
/etc/my.cnf添加
tmp_table_size = 256M
OS:CentOS6.2
DB Version:MySQL 5.5.24
现象:
页面查询缓慢
处理过程:
show processlist;
非常多语句SQL State:Copying to tmp table
查询tmp_table_size 为默认16M
mysql> show variables like '%tmp%';
+-------------------+----------+
| Variable_name | Value |
+-------------------+----------+
| max_tmp_tables | 32 |
| slave_load_tmpdir | /tmp |
| tmp_table_size | 16777216 |
| tmpdir | /tmp |
+-------------------+----------+
4 rows in set (0.00 sec)
/etc/my.cnf添加
tmp_table_size = 256M
相关文章推荐
- Mysql慢查询之Copying to tmp table
- Mysql慢查询之Copying to tmp table
- mysql查询慢(Copying to tmp table)解决一例
- MySQL异常:Incorrect key file for table '/tmp/#sql_37b_1.MYI'; try to repair it
- mysql 查询copy to tmp table造成堵塞
- 一条sql语句引发mysql不停创建临时表的问题解决..coping to tmp table on desk
- Mysql中copying to tmp table事件的相关处理
- mysql的"Incorrect key file for table '/tmp/#sql_1194_12.MYI'; try to repair it"问题
- mysql慢查询问题(Copying to tmp table)
- Mysql之Copying to tmp table
- SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- MySQL 优化 之 Copying to tmp table on disk
- MySql操作缓慢:copy to tmp table
- MySQL错误:Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL easonjim
- php 5.3:connection failed:SQLSTATE[HY000] [2000] mysqlnd cannot connect to MySQL 4.1+ using old auth
- mysql 连接失败:SQLSTATE[HY000] [2003] Can't connect to 公网服务器
- Copying to tmp table on disk
- SQLSTATE[HY000] [2013] Lost connection to MySQL...
- MySQL SQLSTATE[42000]: Syntax error or access violation: 1286 Unknown table engine 'InnoDB' 错误的原因及解决
- SQL_STATE查询附录(MYSQL异常编码查询)