mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-22 19:43:51 -05:00
20 lines
279 B
Plaintext
20 lines
279 B
Plaintext
#!/usr/bin/expect
|
|
|
|
# start client
|
|
set timeout 1
|
|
spawn dolt sql-client --host=0.0.0.0 --port=$PORT -d
|
|
|
|
# list all users
|
|
expect {
|
|
"mysql> " { send "select user from mysql.user;\r"; }
|
|
}
|
|
|
|
# look for only root user
|
|
expect {
|
|
"root"
|
|
}
|
|
|
|
# quit
|
|
expect {
|
|
"mysql> " { exit 0 }
|
|
} |