Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions scripts/configure-proxysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand All @@ -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

Expand Down Expand Up @@ -99,11 +98,6 @@ version_ge() {
fi
}






# --- Main Script Logic ---

wait_for_mysql $BACKEND_AUTH_USERNAME $BACKEND_AUTH_PASSWORD $BACKEND_SERVER 3306
Expand All @@ -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."
Expand All @@ -139,7 +132,6 @@ else
fi
fi


log "INFO" "SHOWING PROXYSQL RUNTIME CONFIGURATION"

configuration_sql="
Expand All @@ -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."
1 change: 0 additions & 1 deletion scripts/proxysql-entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ if [ "${1:0:1}" = '-' ]; then
CMDARG="$@"
fi


log "INFO" "Starting ProxySQL with configuration....."
nl -ba /etc/custom-config/proxysql.cnf

Expand Down