- Laragon
- Multiple DB are ready to install (look table below)
- Unzip tools like 7zip or Winrar
- Laragon installation path default is
C:\laragon\
, might be different depending on where you install this. However we will focus on laragon mysql directory folder which located onC:\laragon\bin\mysql
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 8.0.* version. However we will install latest or older version of MySQL show how we switch to one another using Laragon system tray mysql version switch feature.
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.44 | Link | C:\laragon\data\mysql |
8.0.* (Default) | N/A | C:\laragon\data\mysql-8 |
8.4 LTS | Link | C:\laragon\data\mysql-8.4 |
- Download and unzip the file to
C:\laragon\bin\mysql
. Your folder structure should look like this after extract. - Open command line using CMDer (default terminal by Laragon) and run:
cd C:\laragon\bin\mysql\mysql-8.4.0-winx64\bin
mysqld --initialize --datadir="C:\laragon\data\mysql-8.4" --basedir="C:\laragon\bin\mysql\mysql-8.4.0-winx64" --console
Make sure to store those password generated in the terminal for later use. We will use it to reset root password when we start to login via HeidiSQL
- Copy my.ini (mysqld config) below to mysql 8.4 base folder and set it as read-only (to avoid Laragon override setting using old template)
- Right click on Laragon Tray and switch to MySQL 8.4 version
- Start services
- Open HeidiSQL or any of your DB IDEs and start accessing the table. After first login with root username and generated password, HeidiSQL will ask for new password. Key-in your desirable new password and your are done.
MySQL v8.4 works great with @FlavioSuarez 's instructions (thanks!). I'm trying to install older version however, v5.5.32 in my case (for client project) but I tried it with 5.7 and many others, anything below 8 gives me the same error when trying to initialize and never works. Could anyone help me please? This is the log:
240625 17:56:49 [Note] Plugin 'FEDERATED' is disabled.
mysqld: Table 'mysql.plugin' doesn't exist
240625 17:56:49 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
240625 17:56:49 InnoDB: The InnoDB memory heap is disabled
240625 17:56:49 InnoDB: Mutexes and rw_locks use Windows interlocked functions
240625 17:56:49 InnoDB: Compressed tables use zlib 1.2.3
240625 17:56:49 InnoDB: Initializing buffer pool, size = 128.0M
240625 17:56:49 InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file .\ibdata1 did not exist:
InnoDB: a new database to be created!
240625 17:56:49 InnoDB: Setting file .\ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
240625 17:56:49 InnoDB: Log file .\ib_logfile0 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
240625 17:56:49 InnoDB: Log file .\ib_logfile1 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: 127 rollback segment(s) active.
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
240625 17:56:49 InnoDB: Waiting for the background threads to start
240625 17:56:50 InnoDB: 5.5.32 started; log sequence number 0
240625 17:56:50 [ERROR] mysqld: unknown option '--initialize'
240625 17:56:50 [ERROR] Aborting
240625 17:56:50 InnoDB: Starting shutdown...
240625 17:56:50 InnoDB: Shutdown completed; log sequence number 1595675
240625 17:56:50 [Note] mysqld: Shutdown complete