diff --git a/scripts/configure-proxysql.sh b/scripts/configure-proxysql.sh index 462ee40..977a9d8 100755 --- a/scripts/configure-proxysql.sh +++ b/scripts/configure-proxysql.sh @@ -7,7 +7,6 @@ script_name=${0##*/} # LOAD_BALANCE_MODE - value is either "Galera" or "GroupReplication" # PROXYSQL_VERSION - e.g., "2.7.3-debian", "2.3.2-debian", etc. - function timestamp() { date +"%Y/%m/%d %T" } @@ -21,8 +20,8 @@ function log() { log "" "From $script_name" # Configs -opt=" -vvv -f " # Verbose and force for mysql exec on schema changes -TIMEOUT="10" # 10 sec timeout to wait for server +opt=" -vvv -f " # Verbose and force for mysql exec on schema changes +TIMEOUT="10" # 10 sec timeout to wait for server # Functions @@ -99,11 +98,6 @@ version_ge() { fi } - - - - - # --- Main Script Logic --- wait_for_mysql $BACKEND_AUTH_USERNAME $BACKEND_AUTH_PASSWORD $BACKEND_SERVER 3306 @@ -120,7 +114,6 @@ mysql_exec $BACKEND_AUTH_USERNAME $BACKEND_AUTH_PASSWORD $BACKEND_SERVER 3306 "$ # wait for proxysql process to run and be accessible wait_for_mysql admin admin 127.0.0.1 6032 - # Set default authentication plugin based on PROXYSQL_VERSION if [ -z "$PROXYSQL_VERSION" ]; then log "WARNING" "PROXYSQL_VERSION environment variable is not set. Cannot determine whether to set caching_sha2_password." @@ -139,7 +132,6 @@ else fi fi - log "INFO" "SHOWING PROXYSQL RUNTIME CONFIGURATION" configuration_sql=" @@ -161,5 +153,4 @@ select * from runtime_proxysql_servers; mysql -uadmin -padmin -h127.0.0.1 -P6032 -vvve "$configuration_sql" - log "INFO" "Configuration script finished." diff --git a/scripts/proxysql-entry.sh b/scripts/proxysql-entry.sh index 4ffdc5c..29ba6bb 100755 --- a/scripts/proxysql-entry.sh +++ b/scripts/proxysql-entry.sh @@ -28,7 +28,6 @@ if [ "${1:0:1}" = '-' ]; then CMDARG="$@" fi - log "INFO" "Starting ProxySQL with configuration....." nl -ba /etc/custom-config/proxysql.cnf