-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[BUG] Not working on Windows #171
Comments
Hi I can not currently understand the problem since I currently have no Windows available. Are you using WSL or directly docker on the Windows ? |
just installed on docker for windows, and encountered this error. Why, default .env mysql port is 3306, This is not available on my machine, so I change it to something 3310. All services with "lamp-databse" should start succesfully. After that go to www/test_db_pdo.php and change 3306 on line 8 to 3310 or the port you use. change to |
I had the same but I tested the connection via pdo and mysqli with the provided links on the right side. Since this worked, I ignored the error on the left side. |
Thanks for the reports everyone. Ok lets summarize Index.php Link on the right side: Ok this looks the same. We could add a mysql port option to the env file and reference this env variable im the index.php and the two conn test links on the right side as port variable. This should work as workarround I guess. Can someone confirm this ? The reason why windows is not allowing port 3306 inside the docker bridge is a mystery to me… maybe some antivirus stuff on the machine ? |
I´m running it in WSL 2 on Win 10 - which works perfectly so far. I believe what you are seeing could also be a compatiblity problem of mysql in docker container with hosted volumes on Windows as I recognize a comparable problem in the past. As I remember using host mounted volumes on docker for windows mysql starts up one time and then fails to start because of access right problems. You could try using a docker volume instead |
I now have a Windows System available with debian wsl2 and docker desktop wsl2. |
If you are interested ... I have my mysql docker container with a modified configuration to be able to use host mounted volumes on Windows WSL. Just add a volume mapping for a configuration file to your
And place the file
Works for me on mysql 5.7 and mysql 8.0. |
Hello, I still have the issue with php54 and mysql57
My configuration is very basic, i use defaults ports.
And i have the following issue: I tried with localhost and 127.0.0.1 even with "database" (like phpmyadmin) but still not working The lamp database locker is correctly launched:
|
I had the problem in windows that mysql ignored all config files because they were world readable (Because of exported from Windows). As I have no interest in accessing the database datafiles on the host machine, I added a database volume to get persistent database data. Under database in docker-compose.yml:
Added to end of docker-compose.yml:
|
Hi all,
Restart your Compose stack. |
Describe the bug
Just run on windows
which Branch / PHP Version are you using ?
php8
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: