Yesterday, my server's hdd got crashed and the hosting company replaced it with a new hdd and attached the old one to recover data. They installed the new hdd just as a new server, without cpanel or any other changes. Just by installing the Centos 6 x64.
Afterwards, being very less knowledgeable to linux system, I somehow installed cpanel and transferred old files using rsync command. Now, cpanel installed with mysql 5.5, which have default storage system as MyISAM. And, my database tables were in innodb.
Now, I can't downgrade Mysql to 5.1 and unable to change default storage engine as it gives this error upon restarting if i try to change it to Innodb:
ERROR! MySQL server PID file could not be found!
Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/kali.4hire.org.pid).
Contents of /etc/my.cnf is
Please help me out.
Afterwards, being very less knowledgeable to linux system, I somehow installed cpanel and transferred old files using rsync command. Now, cpanel installed with mysql 5.5, which have default storage system as MyISAM. And, my database tables were in innodb.
Now, I can't downgrade Mysql to 5.1 and unable to change default storage engine as it gives this error upon restarting if i try to change it to Innodb:
ERROR! MySQL server PID file could not be found!
Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/kali.4hire.org.pid).
Contents of /etc/my.cnf is
Code:
[mysql]
no-auto-rehash
[mysqldump]
max_allowed_packet=16M
[myisamchk]
key_buffer_size=256M
write_buffer_size=2M
read_buffer_size=2M
sort_buffer_size=256M
[isamchk]
key_buffer_size=256M
write_buffer_size=2M
read_buffer_size=2M
sort_buffer_size=256M
[mysqld_safe]
skip-federated
server-id=1
log-bin=mysql-bin
log-error="/var/log/mysqld.log"
pid-file="/var/run/mysqld/mysqld.pid"
[mysqld]
max_allowed_packet=1M
innodb_buffer_pool_size=2G
local-infile=0
key_buffer_size=180M
thread_cache_size=8
read_rnd_buffer_size=8M
open_files_limit=1314
table_cache=10K
default-storage-engine=MyISAM
long_query_time=4
slow_query_log
tmp_table_size=512M
sort_buffer_size=4M
read_buffer_size=4M
max_heap_table_size=512M
myisam_sort_buffer_size=64M
query_cache_limit=32M
max_connections=45
join_buffer_size=1M
innodb_file_per_table=1
query_cache_size=512M
sync_binlog=0