Access denied for user 'root'@'localhost' mac os x

broken image

$mysql> UPDATE user SET authentication_string=PASSWORD('my_password') WHERE User='root' Ī) The command for MySql versions before 5.7 was: Sudo /usr/local/mysql/bin/mysqld_safe -skip-grant-tables You can also check System Preferences > MySQL to see if it is running Sudo /usr/local/mysql/support-files/rver stop Open a Terminal window, use the command below to stop mysql if it's already running. You can do the following on Mac (El Capitan)