mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
1.1 KiB
1.1 KiB
Note
the mysql driver is disable until driver issue #257 is resolved
MySQL
Drone comes with support for MySQL as an alternate database engine. To enable MySQL, you should specify the following environment variables:
DATABASE_DRIVER="mysql"
DATABASE_CONFIG="root:pa55word@tcp(localhost:3306)/drone"
MySQL configuration
The following is the standard URI connection scheme:
[username[:password]@][protocol[(address)]]/dbname[?options]
The components of this string are:
usernameoptional. Use this username when connecting to the MySQL instance.passwordoptional. Use this password when connecting to the MySQL instance.protocolserver protocol to connect with.addressserver address to connect to.dbnamename of the database to connect to?optionsconnection specific options
This is an example connection string:
root:pa55word@tcp(localhost:3306)/drone
MySQL options
See the official driver documentation for a full list of driver options.