Skip to content

Commit 883683a

Browse files
committed
Passwordless mysql root user
1 parent c12a814 commit 883683a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/build-install.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ jobs:
1515
mysql:
1616
image: mysql:5.7
1717
env:
18-
MYSQL_ALLOW_EMPTY_PASSWORD: false
19-
MYSQL_ROOT_PASSWORD: root
20-
MYSQL_DATABASE: root
18+
MYSQL_ALLOW_EMPTY_PASSWORD: true
2119
ports:
2220
- 3306/tcp
2321
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
@@ -46,9 +44,9 @@ jobs:
4644
- name: Start mysql service
4745
run: |
4846
sudo systemctl start mysql.service
49-
mysql -e 'CREATE USER "drupal"@"127.0.0.1" IDENTIFIED BY "drupal";' -uroot -proot
50-
mysql -e 'CREATE DATABASE drupal;' -uroot -proot
51-
mysql -e 'GRANT ALL PRIVILEGES ON drupal . * TO "drupal"@"127.0.0.1";' -uroot -proot
47+
mysql -e 'CREATE USER "drupal"@"127.0.0.1" IDENTIFIED BY "drupal";' -uroot
48+
mysql -e 'CREATE DATABASE drupal;' -uroot
49+
mysql -e 'GRANT ALL PRIVILEGES ON drupal . * TO "drupal"@"127.0.0.1";' -uroot
5250
5351
- name: Get composer cache directory
5452
id: composer-cache

0 commit comments

Comments
 (0)