-- 创建数据库和用户
CREATE DATABASE IF NOT EXISTS `wwjcloud` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
CREATE USER IF NOT EXISTS 'wwjcloud'@'%' IDENTIFIED BY '123456';
GRANT ALL PRIVILEGES ON `wwjcloud`.* TO 'wwjcloud'@'%';
FLUSH PRIVILEGES;

-- 使用wwjcloud数据库
USE `wwjcloud`;

-- 导入数据库结构
SOURCE /docker-entrypoint-initdb.d/wwjcloud.sql;
