From 658d4e7532e93ce248cef5b33434434b78e50fa9 Mon Sep 17 00:00:00 2001 From: Mahmoud Zalt Date: Mon, 31 Oct 2016 19:30:12 -0400 Subject: [PATCH] add root access section to mysql docs --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index cc84aa8e..7c926da6 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,7 @@ Laradock is configured to run Laravel Apps by default, and it can be modifyed to - [Cron jobs](#CronJobs) - [Access workspace via ssh](#Workspace-ssh) - [MySQL access from host](#MySQL-access-from-host) + - [MySQL root access](#MySQL-root-access) - [Use custom Domain](#Use-custom-Domain) - [Enable Global Composer Build Install](#Enable-Global-Composer-Build-Install) - [Install Prestissimo](#Install-Prestissimo) @@ -1096,6 +1097,21 @@ ports: - "3306:3306" ``` + +### MySQL root access + +The default username and password for the root mysql user are `root` and `root `. + +1 - Enter the mysql contaier: `docker-compose exec mysql bash`. + +2 - Enter mysql: `mysql -uroot -proot` for non root access use `mysql -uhomestead -psecret`. + +3 - See all users: `SELECT User FROM mysql.user;` + +4 - Run any commands `show databases`, `show tables`, `select * from.....`. + + + ### Use custom Domain (instead of the Docker IP)