We love getting feedback from our users. Bugs and code contributions are great forms of feedback and we thank you for any bugs you report or code you contribute.
Before reporting a new bug, please check first to see if a similar bug already exists.
Bug reports should be as complete as possible. Please try and include the following:
- Complete steps to reproduce the issue.
- Any information about platform and environment that could be specific to the bug.
- Specific version of the product you are using.
- Specific version of the server being used.
- Sample code to help reproduce the issue if possible.
Contributing to this project is easy. You just need to follow these steps.
- Make sure you have a user account at bugs.mysql.com. You will need to reference this user account when you submit your Oracle Contributor Agreement (OCA).
- Sign the Oracle Contributor Agreement. You can find instructions for doing that at the OCA Page.
- Develop your pull request. Make sure you are aware of the requirements for the project.
- Validate your pull request by including tests that sufficiently cover the functionality you are adding.
- Verify that the entire test suite passes with your code applied.
- Submit your pull request. While you can submit the pull request via GitHub, you can also submit it directly via bugs.mysql.com.
Thanks again for your wish to contribute to MySQL. We truly believe in the principles of open source development and appreciate any contributions to our projects.
Any code you contribute needs to pass our test suite. Please follow these steps to run our tests and validate your contributed code.
Make sure you have the necessary prerequisites for building the project and Pylint for code analysis and style
Clone MySQL Connector/Python
shell> git clone https://github.com/mysql/mysql-connector-python.git
Run the entire test suite
shell> python unittests.py --with-mysql=<mysql-dir> --with-mysql-capi=<mysql-capi-dir> --with-protobuf-include-dir=<protobuf-include-dir> --with-protobuf-lib-dir=<protobuf-lib-dir> --with-protoc=<protoc-binary> --extra-link-args="-L<mysql-lib-dir> -lssl -lcrypto"
Example:
shell> python unittests.py --with-mysql=/usr/local/mysql --with-mysql-capi=/usr/local/mysql --with-protobuf-include-dir=/usr/local/protobuf/include --with-protobuf-lib-dir=/usr/local/protobuf/lib --with-protoc=/usr/local/protobuf/bin/protoc --extra-link-args="-L/usr/local/mysql/lib -lssl -lcrypto"
If you need help or just want to get in touch with us, please use the following resources:
- MySQL Connector/Python Developer Guide
- MySQL Connector/Python X DevAPI Reference
- MySQL Connector/Python Forum
- MySQL Public Bug Tracker
- Slack (Sign-up required if you do not have an Oracle account)
- Stack Overflow
- InsideMySQL.com Connectors Blog