au.net.causal.maven.plugins.boxdb.db.mariadb-create-database.sql Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of boxdb-maven-plugin Show documentation
Show all versions of boxdb-maven-plugin Show documentation
Maven plugin to start databases using Docker and VMs
CREATE DATABASE IF NOT EXISTS ${box.databaseName} CHARACTER SET '${box.databaseEncoding}' COLLATE '${box.databaseCollation}';
GRANT USAGE ON *.* TO '${box.databaseUser}'@'%' IDENTIFIED BY '${box.databasePassword}';
GRANT USAGE ON *.* TO '${box.databaseUser}'@'localhost' IDENTIFIED BY '${box.databasePassword}';
GRANT ALL PRIVILEGES ON ${box.databaseName}.* TO '${box.databaseUser}'@'%';
GRANT ALL PRIVILEGES ON ${box.databaseName}.* TO '${box.databaseUser}'@'localhost';