Skip to content

Commit baf3aa1

Browse files
cmb69charmitro
authored andcommitted
Use preinstalled MySQL for Windows CI
Recent hosted GH Windows runners already have MySQL preinstalled, so there is no particular need to install it again via Chocolatey or other means. If we ever need to address more specific needs, we may want to have a look at <https://github.com/ankane/setup-mysql>. Closes phpGH-17561. Closes phpGH-17570.
1 parent e7ac892 commit baf3aa1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/actions/setup-windows/action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ runs:
33
using: composite
44
steps:
55
- name: Setup MySQL
6-
shell: pwsh
6+
shell: cmd
77
run: |
8-
choco install mysql -y --no-progress --params="/port:3306"
9-
mysql.exe --port=3306 --user=root --password="" -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'Password12!'; FLUSH PRIVILEGES;"
8+
mysqld --initialize-insecure
9+
mysqld --install
10+
net start MySQL
11+
mysql --port=3306 --user=root --password="" -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'Password12!'; FLUSH PRIVILEGES;"
1012
- name: Setup MSSQL
1113
shell: pwsh
1214
run: |

0 commit comments

Comments
 (0)