Ballerina MySQL Driver Library
The MySQL Driver library is one of the external library packages of the Ballerina language.
This Package bundles the latest MySQL driver so that mysql connector can be used in ballerina projects easily.
Build from the source
Set up the prerequisites
-
Download and install Java SE Development Kit (JDK) version 17 (from one of the following locations).
-
Export your GitHub personal access token with read package permissions as follows.
export packageUser=<Username> export packagePAT=<Personal access token>
Build the source
Execute the commands below to build from the source.
-
To build the library:
./gradlew clean build
-
Publish ZIP artifact to the local
.m2
repository:./gradlew clean build publishToMavenLocal
-
Publish the generated artifacts to the local Ballerina central repository:
./gradlew clean build -PpublishToLocalCentral=true
-
Publish the generated artifacts to the Ballerina central repository:
./gradlew clean build -PpublishToCentral=true
Contribute to Ballerina
As an open source project, Ballerina welcomes contributions from the community.
For more information, go to the contribution guidelines.
Code of conduct
All contributors are encouraged to read the Ballerina code of conduct.
Useful links
- For more information go to the
mysql.driver
library. - Chat live with us via our Discord server.
- Post all technical questions on Stack Overflow with the #ballerina tag.