[Ubuntu] do not install mysql 8.x on 18.04 (#4685)

This commit is contained in:
Mikhail Koliada
2021-12-08 16:02:06 +03:00
committed by GitHub
parent 07a22999fe
commit 4d7a8a0e35
2 changed files with 47 additions and 24 deletions

View File

@@ -31,9 +31,9 @@ Describe "MySQL" {
It "MySQL Service" {
"sudo systemctl start mysql" | Should -ReturnZeroExitCode
sudo mysql -s -N -h localhost -uroot -proot -e "select count(*) from mysql.user where user='root' and authentication_string is null;" | Should -BeExactly 0
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
"sudo systemctl stop mysql" | Should -ReturnZeroExitCode
}
}