I installed MySQL on MacOS El Capitan. But I am not able to access it.
I get the error:
ERROR 1045 (28000): Access denied for user 'denismilosavljevic'@'localhost' (using password: NO)
How do I properly connect?
I installed MySQL on MacOS El Capitan. But I am not able to access it.
I get the error:
ERROR 1045 (28000): Access denied for user 'denismilosavljevic'@'localhost' (using password: NO)
How do I properly connect?
On OS X to start/stop/restart MySQL pre 5.7 from the command line:
sudo /usr/local/mysql/support-files/mysql.server start
sudo /usr/local/mysql/support-files/mysql.server stop
sudo /usr/local/mysql/support-files/mysql.server restart
If it is running then try mysql -u root -p
Update :
If still not working then set your path
sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock
& try again
mysql -u root -p