Skip to content

Instantly share code, notes, and snippets.

@betulsimsek
Created October 16, 2023 06:52
Show Gist options
  • Save betulsimsek/5f1c6301c995b42f6c93b2fef0e0c1c6 to your computer and use it in GitHub Desktop.
Save betulsimsek/5f1c6301c995b42f6c93b2fef0e0c1c6 to your computer and use it in GitHub Desktop.
ERROR 1045 (28000): Access denied for user ''@'localhost' (using password: NO) on mac
I used above solution for me. It works. I hope it works for you too.
same with (using password: YES)
brew remove mysql
brew cleanup
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/var/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
rm -rf /opt/homebrew/var/mysql
After uninstall all mysql data in mac, then I installed from https://dev.mysql.com/downloads/mysql/.
After installation steps I configure a password for mysql server. Than I run terminal:
mysql -u root -p
I entered password and it worked.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment