7

I downloaded and installed mysql community server GPL version 5.7.13 on my Mac OSX El Capitan. Then I downloaded sequel pro. I tried to connect mysql using socket. I used the name localhost and username root and kept the password blank. When I tried to connect every time I got the message in the picture.

I also want to add, when I install mysql for the first time, there is a popup which gives me a cryptic password for the root@localhost. So instead of keeping the password section blank, I tried that password too. But it kept showing me the same message except 'root'@'localhost' (using password: YES). What am I doing wrong?

sebenalern
  • 2,515
  • 3
  • 26
  • 36
MD Abid Hasan
  • 339
  • 1
  • 3
  • 15

6 Answers6

9

Start mysql server in terminal by:

mysql.server start

Access in mysql with your root user (deffault user created when installed mysql)

mysql -uroot

Create a new account by:

CREATE USER 'new_user'@'localhost' IDENTIFIED BY 'new_password';

Give it all privileges:

GRANT ALL PRIVILEGES ON * . * TO 'new_user'@'localhost';

Then to reload newly assigned permissions run:

FLUSH PRIVILEGES;

Now you should be able to connect with Sequel Pro with new user:

Standard

  • Host: 127.0.0.1
  • Username: new_user
  • Password: new_password
parrycima
  • 905
  • 8
  • 19
  • 4
    Followed this word for word, and it still didn't work. I'm using Catalina 10.15.5 with Sequel Pro 1.1.2. –  Jul 20 '20 at 01:36
3

I use Sequel Pro and connect without password to a localhost server via socket, without any problems. The most likely problem is you typed in the wrong root password. You can reset the root password.

Community
  • 1
  • 1
Hanxue
  • 12,243
  • 18
  • 88
  • 130
  • 2
    Looks like there's problem with sequel pro. When I tested the connection, it failed with "Password incorrect". When I connected, it connected successfully. I'm using Sequel Pro 1.1.2 – SenG Apr 16 '17 at 08:30
1
  1. Make sure MySQL is running (start MAMP/XAMP servers)
  2. MAMP uses "root" for the username AND "root" for the password
cschaefer
  • 259
  • 4
  • 8
0

Use 127.0.0.1 instead of 'localhost'.

-1

Uninstall it and again install. Give the root password at the time of installation. It worked for me.

-2

You will need to restart mysql after changing password, password can be and is in many cases blank, empty carriage return.

the easiest way to restart mysql I have found is by command line

mysql restart;
mibbit
  • 4,997
  • 3
  • 26
  • 34