Skip to content

Commit

Permalink
Change default MySQL root password
Browse files Browse the repository at this point in the history
MySQL 8.0 in Docker was ignoring the MYSQL_ROOT_PASSWORD
environment variable, setting the default user/pass to root
and password. Update the env vars in the dev stack to match
these values.
  • Loading branch information
ethho committed Dec 4, 2023
1 parent 4939853 commit 2228807
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LNX-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
<<: *net
image: datajoint/mysql:${MYSQL_VER:-8.0}
environment:
- MYSQL_ROOT_PASSWORD=${DJ_PASS:-simple}
- MYSQL_ROOT_PASSWORD=${DJ_PASS:-password}
command: mysqld --default-authentication-plugin=mysql_native_password
# ports:
# - "3306:3306"
Expand Down Expand Up @@ -70,7 +70,7 @@ services:
environment:
- DJ_HOST=fakeservices.datajoint.io
- DJ_USER=root
- DJ_PASS=simple
- DJ_PASS=password
- DJ_TEST_HOST=fakeservices.datajoint.io
- DJ_TEST_USER=datajoint
- DJ_TEST_PASSWORD=datajoint
Expand Down

0 comments on commit 2228807

Please sign in to comment.