From beecf7861f392ff827b974a88ab67eb4b2153b2f Mon Sep 17 00:00:00 2001 From: daizhenyu <1449308021@qq.com> Date: Thu, 14 Mar 2024 14:58:25 +0800 Subject: [PATCH] database-integration-test7 Signed-off-by: daizhenyu <1449308021@qq.com> --- .../scenarios/database-write-prohibition/mysql/action.yml | 3 ++- 1 file changed, 2 insertions(+), 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 486abb4232..36ed182634 100644 --- a/.github/actions/scenarios/database-write-prohibition/mysql/action.yml +++ b/.github/actions/scenarios/database-write-prohibition/mysql/action.yml @@ -12,9 +12,10 @@ runs: run: | sudo apt-get update sudo apt-get install -y mysql-server + 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 cat -n /etc/mysql/mysql.conf.d/mysqld.cnf + sudo mysql -u root -p # - name: Set up root password # shell: bash # run: |