Skip to content

Commit 7f78d39

Browse files
committed
Added first-processing script to initialize database without loosing data
1 parent cbda476 commit 7f78d39

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

init/first-processing.sh

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
if [ "$#" -ne 1 ]; then
4+
echo "Usage: $0 <dump-path>"
5+
exit -1
6+
fi
7+
8+
echo "Generate binlog timelog"
9+
./run-listener.sh
10+
./stop-listeners.sh
11+
12+
echo "Generating dumps and loading data ..."
13+
./dump-tables.sh $1
14+
15+
echo "Starting listeners"
16+
./run-listener.sh
17+
18+
echo "Done!"

0 commit comments

Comments
 (0)