Skip to content

Instantly share code, notes, and snippets.

@DeVoresyah
Created December 2, 2019 08:14
Show Gist options
  • Select an option

  • Save DeVoresyah/06d25512d82fca29316d9997eeb4f693 to your computer and use it in GitHub Desktop.

Select an option

Save DeVoresyah/06d25512d82fca29316d9997eeb4f693 to your computer and use it in GitHub Desktop.
Connect PhpMyAdmin to MySQL Laradock

Step by Step

  • Run docker-compose exec mysql bash to open mysql bash
  • Login with mysql -uroot -proot
  • Run these commands :
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';
ALTER USER 'default'@'%' IDENTIFIED WITH mysql_native_password BY 'secret';
  • Open localhost:8080
  • Server mysql username root password root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment