Changing from 'mysql' to 'dolt sql-client' since the GH MacOS runners don't have the mysql client installed by default

This commit is contained in:
Jason Fulghum
2023-06-07 13:31:15 -07:00
parent 02a0087224
commit 146bb14a46

View File

@@ -17,7 +17,7 @@ wait_for_connection() {
# exit code, so we need to temporarily enable 'set +e', but be sure to turn 'set -e' back on before we exit.
set +e
while [ $SECONDS -lt $end_time ]; do
mysql -u $user -h localhost --port $port --protocol TCP --connect-timeout 1 -e "SELECT 1;"
dolt sql-client -u $user --host localhost --port $port --timeout 1 -q "SELECT 1;"
if [ $? -eq 0 ]; then
echo "Connected successfully!"
set -e