1
0

feat:同步上游MySQL

This commit is contained in:
okxlin
2024-12-15 17:53:53 +08:00
parent 66a0e36cb9
commit ae8c2c2237
9 changed files with 131 additions and 15 deletions

View File

@@ -0,0 +1,9 @@
#!/bin/bash
CONFIG_FILE="./conf/my.cnf"
if grep -q "skip-host-cache" "$CONFIG_FILE"; then
sed -i '/skip-host-cache/d' "$CONFIG_FILE"
else
echo "'skip-host-cache' does not exist in the configuration file."
fi