"Copying to tmp table" appears in mysql process list due to low amount of tmp table size
mysql> SET GLOBAL tmp_table_size =536870912;
Query OK, 0 rows affected (0.06 sec)
mysql> SET GLOBAL max_heap_table_size =536870912;
Query OK, 0 rows affected (0.00 sec)
edit /etc/my.cnf
[mysqld]
tmp-table-size = 536870912 #it is in bytes or 512 MB here
max-heap-table-size = 33554432 # increase this to same as tmp-table-size if needed
mysql> SET GLOBAL tmp_table_size =536870912;
Query OK, 0 rows affected (0.06 sec)
mysql> SET GLOBAL max_heap_table_size =536870912;
Query OK, 0 rows affected (0.00 sec)
edit /etc/my.cnf
[mysqld]
tmp-table-size = 536870912 #it is in bytes or 512 MB here
max-heap-table-size = 33554432 # increase this to same as tmp-table-size if needed
No comments:
Post a Comment