update
This commit is contained in:
@@ -40,7 +40,7 @@ function Quit {
|
||||
}
|
||||
|
||||
function Init {
|
||||
rm -f ${SOCK_FILE}* ${PID_FILE}
|
||||
rm -f ${SOCK_FILE}* $PID_FILE
|
||||
chown -R mysql:mysql $LOG_DIR $BINLOG_DIR $DATA_DIR
|
||||
if [ ! -d "$DATA_DIR/mysql" ]; then
|
||||
Print Initing mysql db files ...
|
||||
@@ -50,7 +50,8 @@ function Init {
|
||||
}
|
||||
|
||||
function ImportInitSql {
|
||||
local sql_file= sql_files=
|
||||
local sql_file=
|
||||
local sql_files=
|
||||
mysql -e "CREATE USER docker@localhost IDENTIFIED BY 'China_19\$(10)!'"
|
||||
mysql -e "GRANT RELOAD,SHUTDOWN ON *.* TO docker@localhost"
|
||||
if sql_files="$(ls $LOG_DIR/init_sql/*.sql 2>/dev/null)"; then
|
||||
@@ -64,7 +65,8 @@ function ImportInitSql {
|
||||
}
|
||||
|
||||
function SideCar {
|
||||
local day= last_day=$(date +%d)
|
||||
local day=
|
||||
local last_day=$(date +%d)
|
||||
while sleep 8; do
|
||||
day=$(date +%d) \
|
||||
&& [ "$day" != "$last_day" ] \
|
||||
|
||||
Reference in New Issue
Block a user