Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL Connection Issue #39

Closed
1 task done
thinkeryvin opened this issue Nov 10, 2017 · 3 comments
Closed
1 task done

MySQL Connection Issue #39

thinkeryvin opened this issue Nov 10, 2017 · 3 comments

Comments

@thinkeryvin
Copy link

thinkeryvin commented Nov 10, 2017

Description

Hi-- I'm trying to get started with Vessel but I'm unable to get the database working. My .env file looks like:

DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=testsite
DB_USERNAME=root
DB_PASSWORD=

Attempting to tail the mysql log shows:

$ ./vessel logs mysql
Attaching to testsite_mysql_1
mysql_1  | error: database is uninitialized and password option is not specified
mysql_1  |   You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
mysql_1  | error: database is uninitialized and password option is not specified
mysql_1  |   You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
mysql_1  | error: database is uninitialized and password option is not specified
mysql_1  |   You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
mysql_1  | error: database is uninitialized and password option is not specified
mysql_1  |   You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD

OS

My OS is:

  • MacOS El Capitan

Docker

The output of docker version:

Docker version 17.09.0-ce, build afdb6d4

The output of docker-compose version:

docker-compose version 1.16.1, build 6d1ac21
@thinkeryvin
Copy link
Author

Sorry, read some more docs and see that a blank password can cause issues. I'll add that and rebuild the images.

Thanks

@cringerjs
Copy link
Contributor

Or just set MYSQL_ALLOW_EMPTY_PASSWORD

@fideloper
Copy link
Contributor

fideloper commented Nov 10, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants