Saturday, September 9, 2023

Laragon - mysql issue during upgrading mysql V5 to V8

1. Stop Laragon.

2. Remove all files and folders from mysql-8 in laragon -> data -> mysql-8.

3. Open terminal and go to this directory: laragon -> bin -> mysql -> mysql-8 -> bin

4. Run this command: mysqld --initialize --console

5. Run this command: start mysqld

6. Enter in to mysql: mysql -u root -p

7. Password has given in step 42

8. Run this command: ALTER USER 'root'@'localhost' IDENTIFIED BY '';

9. Close mysqld window and start laragon.

Enjoy mysql 8 in laragon!

Switch PHP version in Ubuntu OS or Zorin OS

First check where is installed your PHP by the below command: $ which php See PHP version by below command: $ php -v As I've installed P...