I am able to access mysql via a MySQL client and a non-root user. After restarting, trying mysql -u root still produces the same error. I then restart the computer (killing the process with CMD + C doesn’t work). Then from in mysql: update er set password_expired = 'N', authentication_string=PASSWORD('newpassword') where user = 'root' I opened a second tab and entered: mysql -u root To try and resolve it I stopped mysql from ‘System Preferences’, then from terminal typed: sudo mysqld_safe -skip-grant-tables From terminal I enter: mysql -u rootĮRROR 1045 (28000): Access denied for user (using password: NO) I’m on Mac OSX (Sierra 10.12.3) trying to create a new database and user.
I’ve tried multiple solutions from StackOverflow but haven’t had any success.