Skip to content

database_mysql #45854

Answered by FofoMalo
FofoMalo asked this question in Q&A
Mar 26, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

i just resolve the situation.
clean your docker-compose file if you use mysql, cause it's start with Postgres
Don't hesitate to clean the file, and put the right port for you database.
In my case:
version: '3.7'
services:
database:
image: 'mysql:latest'
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: main
ports:
# To allow the host machine to access the ports below, modify the lines below.
# For example, to allow the host to connect to port 3306 on the container, you would change
# "3306" to "3306:3306". Where the first port is exposed to the host and the second is the container port.
# See https://docs.docker.com/compose/compose-file/#ports for more information.
- '3306'
###> …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@FofoMalo
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by FofoMalo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants