Reputation: 73
Mac 10.10.1, Mysql 5.6.22
When I install mysql in my mac,and I write mysql -u root -p
on the Terminal,it occur the error:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
When I use Sequel PrO to connect the mysql,it occur the same error.
I try many method in stackoverflow,suck reset mysql password,and so on,it doesn't work
Any solution for this?
Upvotes: 3
Views: 14297
Reputation: 11
MacOS Sierra blocks the sites that use system proxy settings, where all connections of localhost 127.0.0.1 are blocked. As a result, MySQL server does not work. To fix this problem, follow the instructions below.
if you are using Netbeans with it you should also do the following
Upvotes: 1
Reputation: 383
Reset your password: -
/usr/local/opt/mysql/bin/mysqladmin -u root password 'new-password'
Then you can connect with actual credential.
Upvotes: 1