You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
573 B
17 lines
573 B
#!/bin/bash
|
|
|
|
. /3rd/env.env
|
|
#执行此脚本之前应该是替换了正确的mysql地址以及db tail 。
|
|
MYSQL_PORT="3306"
|
|
SQL_PATH=/data/mmogrun/publish/tools/sql
|
|
cd ${SQL_PATH}
|
|
#MYSQL_HOST env 文件中获取
|
|
echo '*********************start clear data********************************'
|
|
mysql -h${MYSQL_HOST} -ummog -pmmog <dbaccount.sql
|
|
mysql -h${MYSQL_HOST} -ummog -pmmog <toss.sql
|
|
mysql -h${MYSQL_HOST} -ummog -pmmog <dbgame.sql
|
|
echo '*********************end clear data********************************'
|
|
|
|
##clear fdb file
|
|
cd /data/mmogrun/publish/bin/
|
|
rm -rf *.dfb
|
|
|