Hello,
My DB size is about 6GB.
Post table is near 3.500.000 records/innodb
CPU QuardCore, 16GB
MYSQL Config
---------------
Today install Advanced Thanks/Like Post. It's timeout.
I check Mysql Process list:
SQL Query: ALTER TABLE `post` ADD `dbtech_thanks_enablethanks` ENUM( '0', '1' ) NOT NULL DEFAULT '1', ADD `,
Status: copy to tmp table
Time: 7956s
I think there are some problem with my config for Mysql Server. It's take more than 2 hours for Add a field to Post table.
Could you help me?
Thank you.
My DB size is about 6GB.
Post table is near 3.500.000 records/innodb
CPU QuardCore, 16GB
MYSQL Config
---------------
PHP:
[mysqld]
back_log = 20
max_connections = 1000
key_buffer = 768M
myisam_sort_buffer_size = 64M
join_buffer_size = 8M
read_buffer_size = 4M
sort_buffer_size = 6M
table_cache = 8192
thread_cache_size = 768
wait_timeout = 120
interactive_timeout = 10
connect_timeout = 10
tmp_table_size = 768M
max_heap_table_size = 512M
max_allowed_packet = 7168M
net_buffer_length = 16384
max_connect_errors = 1000000
thread_concurrency = 16
concurrent_insert = 2
table_lock_wait_timeout = 30
read_rnd_buffer_size = 1M
bulk_insert_buffer_size = 8M
query_cache_limit = 4M
query_cache_size = 512M
query_cache_type = 1
query_prealloc_size = 262144
query_alloc_block_size = 131072
transaction_alloc_block_size = 8192
transaction_prealloc_size = 4096
max_write_lock_count = 16
long_query_time = 5
low_priority_updates=1
log-queries-not-using-indexes
concurrent_insert = 2
low_priority_updates = 1
delay_key_write = all
open_files_limit = 16384
#transaction-isolation=READ-COMMITTED
#innodb_force_recovery = 4
innodb_buffer_pool_size = 12G
#innodb_file_io_threads = 16
#innodb_max_dirty_pages_pct = 90
#innodb_lock_wait_timeout = 120
innodb_data_file_path = ibdata1:100M:autoextend
innodb_additional_mem_pool_size = 768M
innodb_thread_concurrency = 64
[mysqld_safe]
nice = -10
open_files_limit = 8192
[mysqldump]
quick
max_allowed_packet = 7168M
[myisamchk]
key_buffer = 512M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M
Today install Advanced Thanks/Like Post. It's timeout.
I check Mysql Process list:
SQL Query: ALTER TABLE `post` ADD `dbtech_thanks_enablethanks` ENUM( '0', '1' ) NOT NULL DEFAULT '1', ADD `,
Status: copy to tmp table
Time: 7956s
I think there are some problem with my config for Mysql Server. It's take more than 2 hours for Add a field to Post table.
Could you help me?
Thank you.
Last edited: