Skip to content

Commit

Permalink
database-integration-test3
Browse files Browse the repository at this point in the history
Signed-off-by: daizhenyu <[email protected]>
  • Loading branch information
daizhenyu committed Mar 14, 2024
1 parent ac52097 commit 0dd38f2
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@ runs:
run: |
sudo apt-get update
sudo apt-get install -y mysql-server
sudo systemctl start mysqld
sudo systemctl enable mysqld
- name: Set up root password
shell: bash
run: |
TEMP_PASSWORD=$(sudo grep 'temporary password' /var/log/mysqld.log | awk '{print $NF}')
mysql -u root -p"$TEMP_PASSWORD" --connect-expired-password -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '';"
mysql -u root -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '';"
systemctl status mysql.service
# - name: Set up root password
# shell: bash
# run: |
# TEMP_PASSWORD=$(sudo grep 'temporary password' /var/log/mysqld.log | awk '{print $NF}')
# mysql -u root -p"$TEMP_PASSWORD" --connect-expired-password -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '';"
# mysql -u root -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '';"
- name: exit
if: always()
uses: ./.github/actions/common/exit
Expand Down

0 comments on commit 0dd38f2

Please sign in to comment.