8.0
5.7
5.6
Flyway Teams 5.5
Flyway Teams 5.1
Flyway Teams MySQL (for MySQL 5.5 and newer) | MariaDB (for MySQL 5.1) | |
---|---|---|
URL format | jdbc:mysql://host:port/database |
jdbc:mysql://host:port/database |
SSL support | Yes - add ?useSsl=true |
Yes - add ?useSsl=true |
Ships with Flyway Command-line | Yes | Yes |
Maven Central coordinates | mysql:mysql-connector-java:8.0.12 |
org.mariadb.jdbc:mariadb-java-client:2.3.0 |
Supported versions | 5.1.44 and later |
2.0.0 and later |
Default Java class | com.mysql.jdbc.Driver |
org.mariadb.jdbc.Driver |
/* 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();
-- MySQL comments directives generated by mysqlsump
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-- Placeholder
INSERT INTO ${tableName} (name) VALUES ('Mr. T');