Created
October 23, 2019 22:02
-
-
Save flakey-bit/5f5393fe4adedf0d5e1857ebd7ad5453 to your computer and use it in GitHub Desktop.
Install MySQL 5.7.27 & Workbench on Windows unassisted
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Write-Host "Installing MySQL" | |
| $mySqlInstaller = DownloadTempFile -Url "https://downloads.mysql.com/archives/get/file/mysql-installer-community-5.7.27.0.msi" -Filename "mysql-installer-community-5.7.27.0.msi" | |
| Invoke-Process "msiexec" "/i $mySqlInstaller /qb" | |
| Invoke-Process "${env:ProgramFiles(x86)}\MySQL\MySQL Installer for Windows\MySQLInstallerConsole.exe" "community install server;5.7.27;X64:*:servertype=Server;passwd=password -Silent" | |
| Write-Host "Installing MySQL Workbench 8.0.16" | |
| Invoke-Process "${env:ProgramFiles(x86)}\MySQL\MySQL Installer for Windows\MySQLInstallerConsole.exe" "community install workbench;8.0.16;X64:* -Silent" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've found that the
/qbswitch is crucial, as is using the 'full' installer (rather than the 'web' installer'). Spent more time than I'd like to admit getting this right.