From b819e4bc2d52c943b0d3d5f230104a18fdb0195a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Tue, 17 Dec 2019 07:30:50 +0100 Subject: [PATCH] changed default MySQL root password --- .github/workflows/php.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 02690eb..6e5d003 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -9,7 +9,7 @@ jobs: env: MYSQL_HOST_PORT: 3800 MYSQL_DATABASE: monarc_common - MYSQL_ROOT_PASSWORD: password + MYSQL_ROOT_PASSWORD: root MYSQL_USER: sqlmonarcuser MYSQL_PASSWORD: password @@ -24,6 +24,7 @@ jobs: with: host port: $MYSQL_HOST_PORT mysql database: $MYSQL_DATABASE # Optional, default value is "test". The specified database which will be create + mysql root password: $MYSQL_ROOT_PASSWORD # Required if "mysql user" is empty, default is empty. The root superuser password mysql user: $MYSQL_USER # Required if "mysql root password" is empty, default is empty. The superuser for the specified database. Can use secrets, too mysql password: $MYSQL_PASSWORD # Required if "mysql user" exists. The password for the "mysql user" @@ -58,8 +59,8 @@ jobs: - name: Populating common database run: | - mysql -u root -P $MYSQL_HOST_PORT -e "GRANT ALL PRIVILEGES ON * . * TO '$MYSQL_USER'@'%';" - mysql -u root -P $MYSQL_HOST_PORT -e "FLUSH PRIVILEGES;" + mysql -u root -p$MYSQL_ROOT_PASSWORD -P $MYSQL_HOST_PORT -e "GRANT ALL PRIVILEGES ON * . * TO '$MYSQL_USER'@'%';" + mysql -u root -p$MYSQL_ROOT_PASSWORD -P $MYSQL_HOST_PORT -e "FLUSH PRIVILEGES;" mysql -u $MYSQL_USER -p$MYSQL_PASSWORD -P $MYSQL_HOST_PORT $MYSQL_DATABASE < db-bootstrap/monarc_structure.sql > /dev/null mysql -u $MYSQL_USER -p$MYSQL_PASSWORD -P $MYSQL_HOST_PORT $MYSQL_DATABASE < db-bootstrap/monarc_data.sql > /dev/null