Reputation: 5483
I have done these steps:
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/MySQL*
vim /etc/hostconfig and removed the line MYSQLCOM=-YES-
rm -rf ~/Library/PreferencePanes/MySQL*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
and
sudo rm -rf /var/db/receipts/com.mysql.*
But, now when I try to execute the command 'brew install mysql' is tells me 'mysql-5.6.10 already installed'
Anyone know the problem?
**
EDIT
**
Don't know if this will help diagnosing the problem, but...
What I'm trying to do is a fresh install with mysql_secure_installation. I could not log in to mysql with -uroot --password because it told me access was denied. After uninstalling using 'brew uninstall mysql' and then reinstallling with 'brew install mysql' I ran the mysql_secure_installation command. In the first step, where I'm supposed to enter the root password (press enter if there is no password) I pressed enter with a blank line and it told me access denied again.
Upvotes: 4
Views: 16414
Reputation: 58
Additional to this blog post, you may also need to remove the MySQL System Preferences at /Library/PreferencePanes/MySQL.prefPane
Upvotes: 1
Reputation: 11
I found a configuration file in my home directory, ~/.my.cnf
. It caused me an awful lot of problems, and it should be removed too.
Upvotes: 1