1. Uninstall mysql server and clients.
sudo yum list installed | grep mysql2. Delete the databases folder.
and uninstall all mysql-related packages (with "yum remove")
sudo rm -rf /var/lib/mysql/3. If you have the remi repo enabled, disable it.
sudo vi /etc/yum.repos.d/remi.repo (and set enabled = 0)4. Re-install mysql and mysql-server.
sudo yum install mysql5. Start mysql and run mysql_secure_installation.
sudo yum install mysql-server
sudo service mysqld start
sudo /usr/bin/mysql_secure_installation
0 comments :
Post a Comment