I had installed mysql, mysql-server, and mysql-devel via yum:
yum install mysql mysql-server mysql-devel
I had created some databases and users and ended up breaking some tables, so I attempted to remove mysql so I could make a fresh install.
I issued the following commands:
#To remove the packages:
yum remove mysql mysql-server mysql-devel
#To remove the data
rm -rf /var/lib/mysql
Now, after I install mysql, mysql-server, and mysql-devel again and then run mysql, the mysql.user table includes multiple 'root' users and the old databases are still available.
I have ran the following trying to find any configuration files or whatnot for mysql, to no avail:
find . -name \*.sql\*
whereis mysql
whereis sql
grep -hilr "old_database_name" *
grep -hilr "mysql" *
What am I missing?