Category : windows-subsystem-for-linux

I’m trying to connect my laravel project that is running on wsl2 ubuntu to mysql server (with xampp) running on windows 10. .env file configs DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=test DB_USERNAME=root DB_PASSWORD= when I run a php artisan migrate it gives this error IlluminateDatabaseQueryException : SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from ..

Read more

I upgraded to WSL2 from Windows 10. With PHPStorm, in my project that I switched under my WSL, I try to launch PhpUnit. But i have this error : Error in bootstrap script: SymfonyComponentDotenvExceptionPathException: Unable to read the "WSL$UBUNTUhometotosymfonymyProject/.env" environment file. By looking in the parameters at the CLI Interpreter level, I saw that there ..

Read more

I create Docker container for MariaDB database and phpMyAdmin. When i run the container use Docker Compose i cannot access the phpMyAdmin web on http://localhost:8080 Here is my docker-compose.yml version: ‘3.8’ services: database: container_name: database image: mariadb:10.5.8-focal restart: always ports: – 3307:3306 environment: MYSQL_ROOT_PASSWORD: secret volumes: – ./data:/var/lib/mysql – ./entrypoint:/docker-entrypoint-initdb.d networks: – db-network phpmyadmin: container_name: ..

Read more