Skip to content

backup location for mysql-8.0.31-winx64.zip #17563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion .github/actions/setup-windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,31 @@ runs:
- name: Setup MySQL
shell: pwsh
run: |
choco install mysql -y --no-progress --params="/port:3306"
try {
# Try installing MySQL from default choco
choco install mysql -y --no-progress --params="/port:3306"
if (-not $?) {
throw "Chocolatey MySQL installation failed. Falling back to manual installation."
}
} catch {
Write-Host "Default MySQL installation failed (likely 403 from dev.mysql.com). Fallback to backup ZIP..."
$backupUrl = "https://github.com/divinity76/php-src/releases/download/mysql-8.0.31-winx64.zip/mysql-8.0.31-winx64.zip"
$destination = "C:\tools\mysql-8.0.31-winx64.zip"
Invoke-WebRequest -Uri $backupUrl -OutFile $destination
# 3) Expand the ZIP into C:\tools\mysql
Expand-Archive -Path $destination -DestinationPath "C:\tools\mysql"
# 4) Point to the MySQL bin directory in the environment PATH (for the current session)
$mysqlDir = "C:\tools\mysql\mysql-8.0.31-winx64"
$env:Path += ";$mysqlDir\bin"
# 5) Initialize the MySQL data directory (insecure init => empty root password)
& "$mysqlDir\bin\mysqld.exe" --initialize-insecure --datadir="$mysqlDir\data"
# 6) Install MySQL as a Windows service named "MySQL80"
& "$mysqlDir\bin\mysqld.exe" --install MySQL80 --datadir="$mysqlDir\data"
# 7) Start the MySQL service
Start-Service MySQL80
# (Optional) Wait a few seconds to ensure MySQL is fully up:
Start-Sleep -Seconds 2
}
mysql.exe --port=3306 --user=root --password="" -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'Password12!'; FLUSH PRIVILEGES;"
- name: Setup MSSQL
shell: pwsh
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ jobs:
-d zend_extension=opcache.so
-d opcache.enable_cli=1
- uses: codecov/codecov-action@v4
if: !cancelled()
if: ${{ !cancelled() }}
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down Expand Up @@ -500,7 +500,7 @@ jobs:
echo opcache.jit_hot_side_exit=1 >> /etc/php.d/opcache.ini
php -v
- name: Test AMPHP
if: !cancelled()
if: ${{ !cancelled() }}
run: |
repositories="amp cache dns file http parallel parser pipeline process serialization socket sync websocket-client websocket-server"
X=0
Expand All @@ -518,7 +518,7 @@ jobs:
done
exit $X
- name: Test Laravel
if: !cancelled()
if: ${{ !cancelled() }}
run: |
git clone https://github.com/laravel/framework.git --branch=master --depth=1
cd framework
Expand All @@ -531,7 +531,7 @@ jobs:
exit 1
fi
- name: Test ReactPHP
if: !cancelled()
if: ${{ !cancelled() }}
run: |
repositories="async cache child-process datagram dns event-loop promise promise-stream promise-timer stream"
X=0
Expand All @@ -549,7 +549,7 @@ jobs:
done
exit $X
- name: Test Revolt PHP
if: !cancelled()
if: ${{ !cancelled() }}
run: |
git clone https://github.com/revoltphp/event-loop.git --depth=1
cd event-loop
Expand All @@ -560,7 +560,7 @@ jobs:
exit 1
fi
- name: Test Symfony
if: !cancelled() && !inputs.skip_symfony
if: ${{ !cancelled() && !inputs.skip_symfony }}
run: |
git clone https://github.com/symfony/symfony.git --depth=1
cd symfony
Expand All @@ -581,7 +581,7 @@ jobs:
done
exit $X
- name: Test PHPUnit
if: !cancelled()
if: ${{ !cancelled() }}
run: |
git clone https://github.com/sebastianbergmann/phpunit.git --branch=main --depth=1
cd phpunit
Expand All @@ -592,15 +592,15 @@ jobs:
exit 1
fi
- name: 'Symfony Preloading'
if: !cancelled() && !inputs.skip_symfony
if: ${{ !cancelled() && !inputs.skip_symfony }}
run: |
php /usr/bin/composer create-project symfony/symfony-demo symfony_demo --no-progress --ignore-platform-reqs
cd symfony_demo
git rev-parse HEAD
sed -i 's/PHP_SAPI/"cli-server"/g' var/cache/dev/App_KernelDevDebugContainer.preload.php
php -d opcache.preload=var/cache/dev/App_KernelDevDebugContainer.preload.php public/index.php
- name: Test Wordpress
if: !cancelled() && !inputs.skip_wordpress
if: ${{ !cancelled() && !inputs.skip_wordpress }}
run: |
git clone https://github.com/WordPress/wordpress-develop.git wordpress --depth=1
cd wordpress
Expand Down
Loading