#!/bin/bash
export WORK_BASE=/usr/local
mysql -uroot -padmin123456 <<EOF
create database if not exists energy;
use energy;
source $WORK_BASE/energy.sql;
create database nacos;
use nacos;
source $WORK_BASE/nacos.sql;
create database xxl_job;
use xxl_job;
source $WORK_BASE/xxl_job.sql;
EOF
