Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error reporting, include MySQL URI and socket error codes in all connection errors #141

Merged
merged 2 commits into from
Aug 30, 2021

Conversation

clue
Copy link
Contributor

@clue clue commented Aug 30, 2021

This changeset improves error reporting to include the MySQL URI and socket error codes in all connection errors:

- Error: Unable to connect to database server
- Error: Access denied for user 'test'@'::1' (using password: YES)
+ Error: Connection to mysql://test:***@localhost/test failed: Connection to localhost:3306 failed: Last error for IPv4: Connection to tcp://127.0.0.1:3306?hostname=localhost failed: Connection refused. Previous error for IPv6: Connection to tcp://[::1]:3306?hostname=localhost failed: Connection refused
+ Error: Connection to mysql://test:***@localhost/test failed during authentication: Access denied for user 'test'@'::1' (using password: YES) (EACCES)

Builds on top of #138, clue/reactphp-redis#116, clue/reactphp-http-proxy#17 and others

@clue clue added this to the v0.5.6 milestone Aug 30, 2021
@clue clue changed the title Improve error reporting, include M URI and socket error codes in all connection errors Improve error reporting, include MySQL URI and socket error codes in all connection errors Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants