Access denied for user 'root'@'localhost' (using password no) in mac

broken image
broken image

I also have turned on my internet sharing but still access denial. I type 'sudo nano /Library/LaunchDaemons/', I got

broken image

_mysql 224 0.0 6.6 3188416 552216 ? S 7:58pm 0:01.50 /usr/local/mysql/bin/mysqld -basedir=/usr/local/mysql -datadir=/usr/local/mysql/data -plugin-dir=/usr/local/mysql/lib/plugin -user=mysql -log-error=/usr/local/mysql/data/ -pid-file=/usr/local/mysql/data/ -socket=/var/mysql/mysql.sock -port=8888 I typed '/usr/local/mysql/bin/mysql' I got 'ERROR 1045 (28000): Access denied for user (using password: NO)' In the example above, we set root as the password, but we encourage you to set a stronger password. This is a traditional method for authentication, and it is not as secure as authplugin. After new mysql-5.7.4-m14-osx10.7-x86_64 installation, This command changes the password for the user root and sets the authentication method to mysqlnativepassword.