Skip to content

Conversation

@parkr
Copy link
Member

@parkr parkr commented Mar 5, 2023

When using 'localhost', mysql2 uses the socket. This is an uncommon setup, so use IP instead.

Fixes #478.

When using 'localhost', mysql2 uses the socket. This is an uncommon setup, so use IP instead.
@parkr parkr requested a review from ashmaroli March 5, 2023 23:40
@ashmaroli
Copy link
Member

Thanks @parkr
@jekyllbot: merge +fix

@jekyllbot jekyllbot merged commit 64cd4fe into master Mar 6, 2023
@jekyllbot jekyllbot deleted the replace-localhost-with-ip branch March 6, 2023 11:14
jekyllbot added a commit that referenced this pull request Mar 6, 2023
github-actions bot pushed a commit that referenced this pull request Mar 6, 2023
Parker Moore: For databases, especially mysql, connect over 127.0.0.1 IP address (#522)

Merge pull request 522
@jekyll jekyll locked and limited conversation to collaborators Mar 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mysql connection fails when connecting to localhost. "Can't connect to local MySQL server through socket when"

4 participants