Skip to content

Instantly share code, notes, and snippets.

@flakey-bit
Created October 23, 2019 22:02
Show Gist options
  • Save flakey-bit/5f5393fe4adedf0d5e1857ebd7ad5453 to your computer and use it in GitHub Desktop.
Save flakey-bit/5f5393fe4adedf0d5e1857ebd7ad5453 to your computer and use it in GitHub Desktop.
Install MySQL 5.7.27 & Workbench on Windows unassisted
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"
@flakey-bit
Copy link
Author

I've found that the /qb switch 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment