Skip to content

Instantly share code, notes, and snippets.

@denihida1216
Created January 3, 2023 00:58
Show Gist options
  • Save denihida1216/59c3a0cd957867cc9107e27b8b6f2112 to your computer and use it in GitHub Desktop.
Save denihida1216/59c3a0cd957867cc9107e27b8b6f2112 to your computer and use it in GitHub Desktop.
Mysql Error - Laragon 4.0.16 & MySQL 8.0.18 - MySQL cannot start
Delete largon/data/mysql-8
cd to laragon/bin/mysql8.0.0.x/bin folder via cmder (important for step 3)
run 'mysqld --initialize --console' (remember the password)
run 'start mysqld'
run 'mysql -u root -p'
put in the password from 3.
You are now in mysql shell and can remove the password again: "ALTER USER 'root'@'localhost' IDENTIFIED BY '';"
run 'exit' and ctrl + c the spawned tab from step 4.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment