Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jaber-mtl/75b27618df7c0fd8efdc18e32906d045 to your computer and use it in GitHub Desktop.
Save jaber-mtl/75b27618df7c0fd8efdc18e32906d045 to your computer and use it in GitHub Desktop.
Laragon Multiple MySQL Database Version Setup

Pre-requisite

  1. Laragon
  2. Multiple DB are ready to install (look table below)
  3. Unzip tools like 7zip or Winrar
  4. Laragon installation path default is C:\laragon\

If you look at Laragon documentation on multiple DB it should be straight forward however i would like to make it as painless as possible with the setup

By default Laragon (Full version) comes with MySQL 5.7 version. However we will install MySQL 8 and show how we switch to one another.

For this context we will use MySQL community ZIP version that does not have any debugging binary and test suite (keep the size down)

MySQL Version Download Path Local Data Path
5.7.38 Link C:\laragon\data\mysql
8.0.30 Link C:\laragon\data\mysql-8

Steps for MySQL 8

  1. Unzip the file to C:\laragon\bin\mysql
  2. Open command line using CMDer (default terminal by Laragon) and cd to that folder C:\laragon\bin\mysql\mysql-8.0.30-winx64\bin
  3. Run command mysqld --initialize-insecure
  4. Right click on Laragon Tray and switch to MySQL 8.* version
  5. Start services
  6. Open HeidiSQL or any of your DB IDEs and start accessing the table

By default the username is 'root' and password is empty

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