Connecting to socket did not work after support for ipv6 in 5.4.0#1199
Open
magnusvin wants to merge 2 commits intovrana:masterfrom
Open
Connecting to socket did not work after support for ipv6 in 5.4.0#1199magnusvin wants to merge 2 commits intovrana:masterfrom
magnusvin wants to merge 2 commits intovrana:masterfrom
Conversation
Owner
|
Your first commit breaks connecting to IPv6. Describe your input to the server field, the expected behavior and the actual behavior. |
Allows server to be ":/socket/mysql.sock", host will be empty and "port" (socket) will be path to socket. This will also work with "proxy:/socket/mysql.sock" and host will be "proxy" example.com and example.com:3306 will work as expected
Author
|
@vrana You are correct — sorry about that! I have made a new change and tested the following combinations:
Everything should now work as expected. IPv4, IPv6 and domain with port or socket works. This is specifically to the first commit that was wrong ( |
e3fa3eb to
9d1451e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The commit f921dafa breaks behavior that previously worked.
I’ve added comments in the commit messages explaining what each change does and split the commits accordingly.
When the host is empty due to :/unix_socket_path, I now check for that and omit the host in the DSN.
The behavior from this line has been moved into the host_port function.
Because 5.4.0 introduced breaking behavior on my part, I manually fixed the adminer.php file like this:

Shouldn't the CI tests pass? I agree that I should separate the PRs as suggested in #1183.