Dear
@twisted1919 & Ron
I continually get the error: CDbException CDbConnection failed to open the DB connection. I am using MW v1.3.7.8
My actual MySQL config file contains below data. I have optimized this file using:
https://tools.percona.com/wizard
########################################################
/etc/mysql/my.cnf
[client]
port=3306
socket=/var/run/mysqld/mysqld.sock
[mysqld_safe]
socket=/var/run/mysqld/mysqld.sock
[mysqld]
user=mysql
pid-file=/var/run/mysqld/mysqld.pid
socket=/var/run/mysqld/mysqld.sock
port=3306
basedir=/usr
datadir=/var/lib/mysql
tmpdir=/tmp
lc-messages-dir=/usr/share/mysql
# LOGS #
log_error=/var/log/mysql/error.log
log-queries-not-using-indexes = 1
slow-query-log = 1
slow-query-log-file = /var/log/mysql/mysql-slow.log
# BINARY LOGGING #
log-bin = /var/lib/mysql/mysql-bin
expire-logs-days = 14
sync-binlog = 1
symbolic-links=0
skip-external-locking
key_buffer_size = 64K
max_allowed_packet = 1M
table_open_cache = 12
sort_buffer_size = 128K
read_buffer_size = 512K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 240K
innodb_file_per_table = 1
innodb_buffer_pool_size = 2G
# Connections #
max_connections=120
max_user_connections=40
wait_timeout=300
interactive_timeout=60
long_query_time=60
# SAFETY #
max-allowed-packet = 16M
max-connect-errors = 1000000
# skip-name-resolve
sysdate-is-now = 1
innodb = FORCE
# CACHES AND LIMITS #
tmp-table-size = 32M
max-heap-table-size = 32M
query-cache-type = 0
query-cache-size = 0
max-connections = 500
thread-cache-size = 50
open-files-limit = 65535
table-definition-cache = 1024
table-open-cache = 2048
!includedir /etc/mysql/conf.d/
########################################################
The MySQL log files shows no errors.
What else can I do?