1

I am trying to create a database with Sequel Pro and it keeps coming up with an error "Unable to connect to host because access was denied.

Double-check your username and password and ensure that access from your current location is permitted.

MySQL said: Access denied for user 'root'@'localhost' (using password: NO)"

I have mySQL server running on my Mac. Not sure what I am doing wrong. Any help would be appreciated.

AltBrian
  • 2,392
  • 9
  • 29
  • 58

1 Answers1

3

Newer versions of MySQL use a temporary password after setup, and you can use mysqladmin to set it to something permanent.

mysqladmin -u root -p password
onik
  • 1,922
  • 1
  • 18
  • 32
  • Thanks, this helped me discover that a randomly generated password I had set for MySQL with MAMP Pro had a character that wasn't getting escaped. While MySQL might have no password character restrictions, not all passwords can be typed right into Terminal. See also https://superuser.com/questions/1002803/mysql-password-restrictions – Sean Fahey Feb 07 '20 at 19:50