Add support for unix socket connection #115
Open
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.
Before this PR connection strings were usually in the form
mysql://root@localhost/test
After this PR that still works by we allow
mysql://root@localhost?database=test
/
)mysql:///path/to/mysql.sock?database=test
. initial database always need to be a query param for unix socket.mysql://user:pass@/path/to/mysql.sock
This is a breaking change if you relied on manual setup the connection
MySql::Connection::Options
has changed a bit. That's the only breaking change in this PR regarding public API.The CI will now use native mysql because there is no way to use socket via docker AFAIK. And mysql 5.6 is dropped from CI because some small amount of specs where failing, but also EOL.
The goal is to keep working on more transport options that will enable better mysql 8.0 support.
Closes #63
Closes #94