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
Enter mysql is error #75
Comments
As you can see from the MySQL Dockerfile we barely modify the original image, however if you need a quick solution, I advice you google this problem as if it's heppening on the original MySQL docker image. And I will try to reproduce this error and investigate it during the next week. I really hope someone can debug it and help you soon. |
@sasuke6 Hi again, I found a reason today to work on this project and I tried to reproduce your error. mysql --user=homestead --password=secret homestead You can find the username and password in the environment:
MYSQL_DATABASE: homestead
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: root |
Thanks a lot! |
Hi I had this issue, this fixed it for me. I'm just wondering if this happens every time for every developer? If so could we add this to the documentation? |
@jakelacey2012 if you feel it needs to be documented, please go ahead and create a new section in the readme about MySQL (example: Use MySQL) and then show all the tips such as how to ssh into that container |
@Mahmoudz How can I change my mysql password. I've tried changing the password from |
@saumya04 Delete your container and rebuild again.
|
@appleboy I've tried that already, its not working yet! |
I found this command on another question, related to this topic. Supposedly it deletes the data that normally isn't deleted by deleting the old containers and images docker-compose rm -v |
This still happens to me, it doesn't update the root password set in docker-compose.xml |
Yes, this is because the mysql image creates a volume storing the password, so it needs to be deleted in the event that everything was not set up correctly the first time you composed. |
When I enter the mysql container
docker exec -it docker_mysql_1 bash
,there is no problem.But if I enter themysql
,there isERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
.When I use
mysql -u root -p
,there isERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
What is the initial password and how to reset it quickly?
The text was updated successfully, but these errors were encountered: