init:/docker-entrypoint-initdb.d/

init.sql:
CREATE DATABASE IF NOT EXISTS security ;
CREATE DATABASE IF NOT EXISTS challenges ;
CREATE USER security IDENTIFIED BY 'security';
GRANT ALL PRIVILEGES ON security.* TO 'security'@'%';
GRANT ALL PRIVILEGES ON challenges.* TO 'security'@'%';
FLUSH PRIVILEGES;

标签: none

评论已关闭