documentation/Reference/Database Driver Reference/TiDB (Titanium DB).md
{% include database-boilerplate.html %}
| Item | Details |
|---|---|
| URL format | <code>jdbc:mysql://<i>host</i>:<i>port</i>/<i>database</i></code> |
| SSL support | Not tested |
| Ships with Flyway Command-line | Yes |
| Maven Central coordinates | mysql:mysql-connector-java |
| Supported versions | 5.0 and later |
| Default Java class | com.mysql.jdbc.Driver |
| Flyway Community implementation | flyway-community-db-support |
YugabyteDB support is a separate dependency for Flyway and will need to be added to your Java project to access these features.
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-database-tidb</artifactId>
</dependency>
buildscript {
dependencies {
implementation "org.flywaydb:flyway-database-tidb"
}
}
/* Single line comment */
CREATE TABLE test_data (
value VARCHAR(25) NOT NULL,
PRIMARY KEY(value)
);
/*
Multi-line
comment
*/
-- MySQL procedure
DELIMITER //
CREATE PROCEDURE AddData()
BEGIN
# MySQL-style single line comment
INSERT INTO test_data (value) VALUES ('Hello');
END //
DELIMITER;
CALL AddData();
-- Placeholder
INSERT INTO ${tableName} (name) VALUES ('Mr. T');