MySQL datadir from previous install
I was running Ubuntu 9.10 and had the MySQL datadir moved to a different directory, /store/mysql. Due to a filesystem problem on the upgrade to Ubuntu 10.04, I was forced to reinstall. My /store/mysql was copied back over, and I made the appropriate changes to /etc/mysql/my.cnf and /etc/apparmor.d/usr.sbin.mysqld, but MySQL hangs when I go to start it and nothing is showing up in any of the logs.
How do I get MySQL to recognize the datadir from the previous install? |
Reverted the config. Right now, mysql is not running:
Code:
$ ps -ef | grep -i mysql Code:
$ sudo service mysql start The last reply is: Quote:
Code:
sudo -u mysql /usr/sbin/mysqld &
Now everything works! My guess is that there was some sort of mutex that was holding up everything, and running the mysqld manually sorted it all out. Thanks to Ryan Dwyer on the Ubuntu forums for his help! |
All times are GMT -5. The time now is 05:43 AM. |