Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can’t connect to MySQL server on 127.0.0.1 (61) #100

Open
a-am opened this issue Mar 13, 2023 · 2 comments
Open

Can’t connect to MySQL server on 127.0.0.1 (61) #100

a-am opened this issue Mar 13, 2023 · 2 comments

Comments

@a-am
Copy link

a-am commented Mar 13, 2023

Please fill out the detail below, it helps me investigate the bug:

  1. Driver (Ex: PostgreSQL 10.0): MySQL 8.0.27 port 3307 or 3306 ( tried both)

  2. DBngin build number: 6.4

  3. macOS version: Ventura 13.2.1

  4. The steps to reproduce this issue: Start Up MySQL, then open try to open database in TablePlus or SEQUEL Ace

After updating Homebrew and fixing some permissions for brew cleanup files, I try to access this database and get this error: "Can’t connect to MySQL server on 127.0.0.1 (61)".

I have tried just creating a new MySQL 8.0.27 database and opening in TablePlus and that works. Is there a way to recover the database files from the other DB that keeps throwing that error?

@emmab30
Copy link

emmab30 commented May 16, 2023

I got able to make it work by doing the following:

Create a my.cnf file wherever you want with the following content:

[mysqld]
sql_mode = "STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"
default_authentication_plugin = mysql_native_password
port = 3306

Then go to DBngin and set that configuration file in the connection settings. Once I did this, it got fixed but then I got another error regarding the authentication driver once connected. What I needed to do is the following:

Go to the terminal and then type the following:

mysql --socket=/tmp/mysql_3306.sock -u root

Once you're connected, you need to execute the following commands:

ALTER USER 'root'@'localhost' IDENTIFIED BY '';
FLUSH PRIVILEGES;

Then try connecting again using the above command and it should work.

Hope this is helpful for anyone suffering this error.

@sineld
Copy link

sineld commented Aug 4, 2023

#102 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants