Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
fix sql to use the user and password
Browse files Browse the repository at this point in the history
Signed-off-by: Jason McCallister <jason@craftcms.com>
  • Loading branch information
jasonmccallister committed Apr 4, 2020
1 parent 52b9f6f commit 0fdea22
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/nitro/init.go → internal/nitro/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ runcmd:
- sudo usermod -aG docker ubuntu
- wget -q -O - https://packages.blackfire.io/gpg.key | sudo apt-key add -
- echo "deb http://packages.blackfire.io/debian any main" | sudo tee /etc/apt/sources.list.d/blackfire.list
- sudo mkdir -p /opt/nitro/storage/{mysql,postgres}
- sudo mkdir -p /opt/nitro/volumes/mysql
- sudo mkdir -p /opt/nitro/volumes/postgres
- sudo chown -R ubuntu:ubuntu /opt/nitro
`

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion internal/nitro/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ func SQL(name, engine, version string) []Command {
Machine: name,
Type: "exec",
Chainable: false,
Args: []string{name, "--", "docker", "exec", "-it", "nitro_" + engine + "_" + version, "mysql"},
Args: []string{name, "--", "docker", "exec", "-it", "nitro_" + engine + "_" + version, "mysql", "-u", "nitro", "-pnitro"},
},
}
}

0 comments on commit 0fdea22

Please # to comment.