I found many similar question on Stackoverflow but didn\'t get the exact error solution. My issue is when starting MySQL service on one of the Dedicated Centos 6.5 machine, I am
Nothing was working with reinstalls, removes, and others (I had no data to keep, not a fix; more of a data destruction process, big caveat there):
1005 mysql_install_db
1007 /usr/bin/mysqld_safe --datadir='/var/lib/mysql
1008 /usr/bin/mysqld_safe --datadir='/var/lib/mysql' (^z)
1009 bg
1010 mysql
1011 mysql_secure_installation
1012 mysql
1013 mysql -p
And viola; actually usable database.
Although late but putting answer here so that solution that helped me can help someone. I took following steps:
Example of addition to my.cnf:
innodb_buffer_pool_size = 10M
innodb_log_file_size = 1000M
This is frequently occurred issue. Do following -
This should fix the issue; actually it worked for me.
I fixed this issue by following:
sudo service mysql stop
and sudo service mysql start
I hope this helps. Thanks
Changing the values of innodb_buffer_pool_size
and innodb_log_file_size
didn't work for me.
Moving ib_logfile0
and ib_logfile1
files didn't help either.
What did help was:
> service mysql stop
Edit my.cfg
and add innodb_force_recovery = 1
> service mysql start
> service mysql stop
Comment the innodb_force_recovery = 1
line.
> service mysql start
And voilá. (I should note that I have no idea if this involves any data loss or not)
I have the same problems, this my solution:
Add more RAM to the server
Decrease the value of innodb-buffer-pool size in the config file:
sudo nano /etc/mysql/my.cnf
innodb_buffer_pool_size = 10M
After save /etc/mysql/my.cnf
.
Restart mysql service:
sudo service mysql restart
exit