Skip to content

Commit

Permalink
ci: update windows vm image
Browse files Browse the repository at this point in the history
  • Loading branch information
blackbeam committed Dec 10, 2022
1 parent 7ee5307 commit 185bce9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
- job: "TestBasicWindows"
pool:
vmImage: "vs2017-win2016"
vmImage: "windows-2019"
strategy:
maxParallel: 10
matrix:
Expand All @@ -114,18 +114,18 @@ jobs:
choco install 7zip
mkdir C:\mysql
CD /D C:\mysql
curl -fsS --retry 3 --retry-connrefused -o mysql.msi https://cdn.mysql.com/archives/mysql-installer/mysql-installer-community-8.0.11.0.msi
curl -fsS --retry 3 --retry-connrefused -o mysql.msi https://cdn.mysql.com/archives/mysql-installer/mysql-installer-community-8.0.15.0.msi
msiexec /q /log install.txt /i mysql.msi datadir=C:\mysql installdir=C:\mysql
call "C:\Program Files (x86)\MySQL\MySQL Installer for Windows\MySQLInstallerConsole.exe" community install server;8.0.11;x64:*:port=3306;enable_named_pipe=true;rootpasswd=password;servicename=MySQL -silent
call "C:\Program Files (x86)\MySQL\MySQL Installer for Windows\MySQLInstallerConsole.exe" community install server;8.0.15;x64:*:port=3306;enable_named_pipe=true;rootpasswd=password;servicename=mymysql -silent
netsh advfirewall firewall add rule name="Allow mysql" dir=in action=allow edge=yes remoteip=any protocol=TCP localport=80,8080,3306
net stop MySQL
net stop mymysql
"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld" --remove
echo [mysqld] >> C:\my.cnf
echo enable-named-pipe >> C:\my.cnf
echo socket=MYSQL >> C:\my.cnf
echo datadir=C:\\ProgramData\\MySQL\\MySQL Server 8.0\\Data\\ >> C:\my.cnf
"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld" --install MySQL --defaults-file=C:\my.cnf
net start MySql
"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld" --install mymysql --defaults-file=C:\my.cnf
net start mymysql
"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -e "SET GLOBAL max_allowed_packet = 36700160;" -uroot -ppassword
"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -e "SET @@GLOBAL.ENFORCE_GTID_CONSISTENCY = WARN;" -uroot -ppassword
"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -e "SET @@GLOBAL.ENFORCE_GTID_CONSISTENCY = ON;" -uroot -ppassword
Expand Down

0 comments on commit 185bce9

Please sign in to comment.