MySql do not start causing an ERROR: PleskMainDBException
by bernt & torsten
Recently we had an issue with Plesk, we were not allowed access and the following error message was displayed to us
ERROR: PleskMainDBException
MySQL query failed: Incorrect information in file: ‘./psa/misc.frm’
0: common_func.php3:168
db_query(string ‘select param, val from misc’)
1: common_func.php3:587
get_param(string ‘mysql41_compatible’)
2: common_func.php3:484
db_set_names()
3: common_func.php3:463
db_connect_real(string ‘localhost’, string ‘admin’, string ‘*************’, string ‘psa’)
4: common_func.php3:443
db_connect()
5: auth.php3:90
Narrowing down the problem, we did the following tasks.
[root@u1693 etc]# /etc/init.d/psa restart
ERROR 1033 (HY000) at line 1: Incorrect information in file: ‘./psa/sessions.frm’
[root@u1693 etc]# service mysqld restart
Stopping MySQL: [ OK ]
Starting MySQL: [ OK ]
[root@u1693 etc]# /etc/init.d/psa restart
ERROR: PleskMainDBException
MySQL query failed: Incorrect information in file: ‘./psa/misc.frm’
0: common_func.php3:168
db_query(string ‘select param, val from misc’)
1: common_func.php3:587
get_param(string ‘mysql41_compatible’)
2: common_func.php3:484
db_set_names()
3: common_func.php3:463
db_connect_real(string ‘localhost’, string ‘admin’, string ‘*************’, string ‘psa’)
4: common_func.php3:443
db_connect()
5: auth.php3:90
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
language = /usr/share/mysql/english
skip-external-locking
key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 128K
thread_cache_size = 8
query_cache_limit = 1M
query_cache_size = 16M
log_bin = /var/log/mysql/mysql-bin.log
# WARNING: Using expire_logs_days without bin_log crashes the server! See README.Debian!
expire_logs_days = 10
max_binlog_size = 100M
skip-bdb
#
# * InnoDB
#
set-variable = innodb_buffer_pool_size=2M
set-variable = innodb_additional_mem_pool_size=500K
set-variable = innodb_log_buffer_size=500K
set-variable = innodb_thread_concurrency=2
quick
quote-names
max_allowed_packet = 16M
[mysql]
#no-auto-rehash # faster start of mysql but no tab completition
[isamchk]
key_buffer = 16M
Why It’s Important to Exercise When You’re Over 60
Many of us find ourselves in a pickle as the years pile up. Once reliable sidekicks, our...
A Poem: The Last Time
You never know when it will be,
The last time you ski down slopes of snow,
A Poem: Time Millionaire
When the morning wakes, still and clear,
No more alarms, no more rush....