Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Hagbard's avatar

Fresh installation of Brew with MySQL. Can't connect

I have a fresh installation of homebrew. I wanted to install MySQL, so I ran:

brew install [email protected]

After this, I tried connecting using Sequel Pro and 127.0.0.1 for host, and root for user. This gave me this error:

Unable to connect to host 127.0.0.1, or the request timed out.

Be sure that the address is correct and that you have the necessary privileges, or try increasing the connection timeout (currently 10 seconds).

MySQL said: Access denied for user 'root'@'localhost'

If I try to run mysql -uroot in terminal, i also get access denied error.

0 likes
4 replies
tykus's avatar

Did you start mysql service?

Hagbard's avatar

The service is both started using brew brew services start mysql and just mysql.server start

Hagbard's avatar

Not sure if I had to run it with specific version. Nonetheless, the service is started. If i run brew services list, it appears as running.

Please or to participate in this conversation.