I am on a server that has afresh install on RHEL 5. I was able to install Apache and PHP just fine., but I am having serious trouble with my MySQL installation. I tried t
Uninstall mysql using yum remove mysql*
Recursively delete /usr/bin/mysql
and /var/lib/mysql
Delete the file /etc/my.cnf.rmp
Use ps -e
to check the processes to make sure mysql isn't still running.
Reboot server with reboot
Run yum install mysql-server
. This also seems to install the mysql client as a dependency.
Give mysql ownership and group priveleges with:
chown -R mysql /var/lib/mysql
chgrp -R mysql /var/lib/mysql
Use service mysqld start
to start MySQL Daemon.