fix empty password for mysql-server (#2400)

This commit is contained in:
Aleksandr Chebotov
2021-01-08 16:02:09 +03:00
committed by GitHub
parent 2fdc4d38d9
commit e470bcde79
2 changed files with 8 additions and 18 deletions

View File

@@ -22,9 +22,10 @@ Describe "MySQL" {
}
It "MySQL Service" {
"sudo systemctl start mysql" | Should -ReturnZeroExitCode
"sudo systemctl start mysql" | Should -ReturnZeroExitCode
mysql -s -N -h localhost -uroot -proot -e "select count(*) from mysql.user where user='root' and authentication_string is null;" | Should -BeExactly 0
"sudo mysql -vvv -e 'CREATE DATABASE smoke_test' -uroot -proot" | Should -ReturnZeroExitCode
"sudo mysql -vvv -e 'DROP DATABASE smoke_test' -uroot -proot" | Should -ReturnZeroExitCode
"sudo systemctl stop mysql" | Should -ReturnZeroExitCode
}
}
}