I have some issues with my MySQL server
# Time: 2017-10-30T09:25:41.253828Z # User@Host: dbXXXXXXXXXXXX[dbXXXXXXXXXXXX] @ localhost [] Id: 469 # Query_time: 26.990475 Lock_time: 0.000039 Rows_sent: 0 Rows_examined: 1 use dbXXXXXXXXXXXX; SET timestamp=1509355541; UPDATE online SET last_ping=1509355514 WHERE `device`='wggggn4gggk2gggggXYgEokgggggpOggf'; The table is super-simple and contains around 1000 rows https://cdn.pbrd.co/images/GRjN6fE.png
I have no idea why it takes so long sometimes. The last_ping is updated every 5 seconds when the device is online.
Or this one from WordPress:
# Time: 2017-10-30T07:55:24.755752Z # User@Host: sobotiste[sobotiste] @ localhost [] Id: 22317 # Query_time: 9.586909 Lock_time: 0.000113 Rows_sent: 0 Rows_examined: 1 use sobotiste; SET timestamp=1509350124; UPDATE `wp_options` SET `option_value` = '1509351915' WHERE `option_name` = '_transient_timeout_4__974818834'; What should I do?
Version of server (from PMA):
Server: Localhost via UNIX socket Server type: MySQL Server version: 5.7.20-0ubuntu0.16.04.1-log - (Ubuntu) Protocol version: 10 User: root@localhost Server charset: UTF-8 Unicode (utf8) my.cnf:
[mysqld] query_cache_type=1 long_query_time=8 slow_query_log=ON query_cache_limit=32M innodb_buffer_pool_size=3G innodb_log_file_size=256M innodb_log_buffer_size=4M join_buffer_size=512K max_heap_table_size=64M tmp_table_size=64M table_open_cache=1024 innodb_lru_scan_depth=256 key_buffer_size=32M