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

Having issues with trying to start mysql db with docker on windows 10 #492

Closed
Riotsmurf2 opened this issue Sep 19, 2018 · 4 comments
Closed
Labels
question Usability question, not directly related to an error with the image

Comments

@Riotsmurf2
Copy link

I normally use linux, but since i got my laptop i will have to work with windows 10 as well.
I have googled around and cannot find a straight answer on why i cannot get this database to stay up.
I am familiar with using mysql, but not its errors how it needs to be setup.
I know this docker works fine on linux because i use it all the time in the office. I was wondering if anyone has some insight or ideas on how i can get this databse to stay up.
Basically the situation is when i docker-compose up my app comes up, and it tries to start the database but errors out.
Here is the log for that docker image.
Image of container log

Here is my docker file.
image of docker file

@wglambert wglambert added the question Usability question, not directly related to an error with the image label Sep 19, 2018
@Riotsmurf2
Copy link
Author

SOLUTION: for anyone who comes across this with the same issue. Try this. I ran this command --innodb-use-native-aio=0

In my docker-compose file it looks like this:

conan_database:
    image: mysql:5.5
    command: --innodb-use-native-aio=0
    container_name: dconan_database_1
    ports:
    - "9000:3306"
    volumes:
    - ./conan_mysql:/var/lib/mysql
    environment:
    - MYSQL_RANDOM_ROOT_PASSWORD="yes"

@Riotsmurf2
Copy link
Author

Fuckin after 1 1/2 days of googling. Found it T_T ugh that was harder than it had to be.

@wglambert
Copy link

https://stackoverflow.com/questions/48239668/fails-to-initialize-mysql-database-on-windows-10

Yeah this seems to be an odd issue with windows 10 specifically, another windows 10 user had commented previously about this #69 (comment)

@Riotsmurf2
Copy link
Author

@wglambert Thanks for the link, thats exactly where i found my answer haha.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Usability question, not directly related to an error with the image
Projects
None yet
Development

No branches or pull requests

2 participants