Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: mysql_connect() can’t connect through socket


chrishajer
Participant

@chrishajer

Why didn’t you set a host name when installing? It’s on the same page as the database name, username and password, it’s just not shown by default. I think it’s a link that says something like “show advanced database settings.” I wouldn’t modify the core at all to connect to the database.

The error comes from not having a host name and the software trying to connect to localhost via port 3306, but that’s not where your database lives, it’s on a machine called internal-db.s41093.gridserver.com.

Skip to toolbar