From 72f375d276d6d520da00a6a9c570c6e84e30fd10 Mon Sep 17 00:00:00 2001 From: daizhenyu <1449308021@qq.com> Date: Fri, 15 Mar 2024 11:34:50 +0800 Subject: [PATCH] database-integration-test25 Signed-off-by: daizhenyu <1449308021@qq.com> --- .../scenarios/database-write-prohibition/mysql/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/scenarios/database-write-prohibition/mysql/action.yml b/.github/actions/scenarios/database-write-prohibition/mysql/action.yml index c47e9129ae..2fcd8af910 100644 --- a/.github/actions/scenarios/database-write-prohibition/mysql/action.yml +++ b/.github/actions/scenarios/database-write-prohibition/mysql/action.yml @@ -15,7 +15,7 @@ runs: sudo sed -i '/^\[mysqld\]/a skip-grant-tables' /etc/mysql/mysql.conf.d/mysqld.cnf sudo systemctl start mysql.service sudo systemctl status mysql.service - sudo mysql -u root + sudo mysql -u root -e "CREATE DATABASE IF NOT EXISTS test;" # TEMP_PASSWORD=$(grep "A temporary password" /var/log/mysqld.log | awk '{print $NF}') # echo "Temporary Password: $TEMP_PASSWORD" # sudo mysql_secure_installation << EOF