2020-09-29 08:05:38 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-09-29 11:18:07 +08:00
|
|
|
mysqlRootPassword=1234
|
|
|
|
|
|
|
|
until mysql -hmysql -u root -p$mysqlRootPassword -e ";" ; do
|
|
|
|
echo "Can't connect mysql, retry"
|
|
|
|
sleep 5
|
|
|
|
done
|
|
|
|
|
|
|
|
mysql -hmysql -uroot -p$mysqlRootPassword < sql/n9e_ams.sql
|
|
|
|
mysql -hmysql -uroot -p$mysqlRootPassword < sql/n9e_hbs.sql
|
|
|
|
mysql -hmysql -uroot -p$mysqlRootPassword < sql/n9e_job.sql
|
|
|
|
mysql -hmysql -uroot -p$mysqlRootPassword < sql/n9e_mon.sql
|
|
|
|
mysql -hmysql -uroot -p$mysqlRootPassword < sql/n9e_rdb.sql
|
2020-09-29 08:05:38 +08:00
|
|
|
|
|
|
|
./control start all
|
|
|
|
sleep infinity
|