jerauf's avatar
Level 1

Installed Herd and refusing MySQL connections

I installed Herd on my M1 Mac. Serving static pages is working fine. But MySQL connections are being refused. I've double checked the config in my Laravel app and all is working. I tried flushing privileges in my MySQL client. Nothing at all is working.

Anyone know of a fix?

0 likes
5 replies
jlrdw's avatar

Do you have paid version?

Snapey's avatar

can you manage mysql via a desktop tool?

jerauf's avatar
Level 1

@Snapey I deleted my last comment. I was able to create a database but when I try to access a page in my browser that runs a query, I get the error "SQLSTATE[HY000] [2002] Connection refused". This is my connection from my env file:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=db_name
DB_USERNAME=root
DB_PASSWORD=
Tray2's avatar

@jerauf I recommend installing dbngin it works great together with Herd.

https://dbngin.com/

I installed them on my M4 atwo months ago, and never had any issues with permissions.

Please or to participate in this conversation.