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

Incorrect mysql password #4

Open
andy9775 opened this issue Jan 11, 2020 · 3 comments
Open

Incorrect mysql password #4

andy9775 opened this issue Jan 11, 2020 · 3 comments

Comments

@andy9775
Copy link

I've tried following the specified directions and can't seem to boot up the image.

running docker-compose up -d mysql doesn't allow me to log into mysql with the specified password via docker exec. To fix this I execute docker run ... which allows me to login. However, both approaches result in the following error

...
+ echo 'Testing MySQL admin credentials correctness...'
Testing MySQL admin credentials correctness...
+ mysql_wrapper -hmysql -uroot
+ echo 'show databases'
+ echo -e '\n\n\tProvided MySQL admin credentials are incorrect\n'


	Provided MySQL admin credentials are incorrect

++ whoami
+ echo -e 'Please create ~root/.my.cnf with right password like this\n'
Please create ~root/.my.cnf with right password like this
...

The password is being passed through correctly via the env variables (it's echoed out above the error message) however it seems like it's not logging in

Any ideas??

@rayzorben
Copy link
Owner

Can you post your full .env file with the passwords masked out?

@andy9775
Copy link
Author

Sure its:

# Set to your desired timezone. See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TZ=America/Toronto

# Used by bluecherry to login to the MYSQL server
MYSQL_ADMIN_LOGIN=root

# Used by bluecherry as the password for the root account to create databases
MYSQL_ADMIN_PASSWORD=

# Name of the MYSQL host. This is usually the name of the service in docker-compose.yml
MYSQL_HOST=mysql

# Creates a user used by bluecherry and grants permission to the database.
BLUECHERRY_DB_USER=bluecherry

# Password for above user.
BLUECHERRY_DB_PASSWORD=

# Database name for the bluecherry database. Will delete if it exists.
BLUECHERRY_DB_NAME=bluecherry

# Grants access to the bluecherry user at this hostmask. This should be the IP of your bluecherry
# container. Examples:
#   192.168.0.% - allows access from any IP on the 192.168.0.xxx range
#   %.example.com - allows access to anyone from the example.com domain
#   192.168.1.0/255.255.255.0 - allows from any IP in 192.168.1.xxx range
BLUECHERRY_USERHOST=%

# UID/GID to run bluecherry user as. If you want to access recordings from the host, it is
# recommended to set them the same as a user/group that you want access to read it. 
# run `id $(whoami)` to find the UID/GID of your user
BLUECHERRY_GROUP_ID=1000
BLUECHERRY_USER_ID=1000

I haven't made any changes except for the password

@rayzorben rayzorben pinned this issue Jan 12, 2020
@rayzorben rayzorben unpinned this issue Jan 12, 2020
@zombiehoffa
Copy link

Are you running the latest version of docker-compose? I was having lots of problems because I used apt and installed docker-compose thinking since I already added the docker repository it would be pulling from there but instead I got an ancient 1.21 version (It wouldn't even accept version 3.7 yml,). After removing my ancient docker-compose (sudo apt-get remove docker-compose for me) and following this: https://docs.docker.com/compose/install/
the thing built fine.

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

No branches or pull requests

3 participants