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

Add_MySQL_Connection_Pool_with_Environment_Variable_Support #172

Closed

Conversation

smog-root
Copy link
Contributor

Issue_id: (NOT CREATED)!

Changes:

  • Added logic to test the connection upon initialization and release it back to the pool.
  • Included specific error messages for common database connection issues.

Error Handling: Added error handling logic to manage common database connection errors such as connection loss, too many connections, or connection refusal. Errors are logged with appropriate messages to help with debugging.

How to Test:

  1. Ensure that .env file contains the correct database credentials (host, user, password, etc.).
  2. Run the application and check if it successfully connects to the database.
  3. Verify that the pool manages multiple connections efficiently under load.
  4. Check error logs when database connections fail to ensure proper handling and logging.

Note: I did not created an issue so. Assign me this PR, and add gssoc-ext with level3, hacktoberfest-accepted labels!

@Harshdev098

@smog-root
Copy link
Contributor Author

dude are you going to merge it??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants