-
-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
Extension Version
v2.5.1
OS and Version
WSL: 2.4.13.0 ;kernel: 5.15.167.4-1 ;WSLg: 1.0.65 ;MSRDC: 1.2.5716 ;Direct3D: 1.611.1-81528511 ;DXCore: 10.0.26100.1-240331-1435.ge-release ;Windows: 10.0.26100.3624
VS Code Version
v1.92.0-insider
Database name and Version
mysql Ver 8.0.36 for Linux on x86_64 (MySQL Community Server - GPL)
Steps to reproduce
Launch VSCode on Windows, with ssh connection to the WSL.
- Exensions boots currectly and logs as seen in the Screenshots "section"
Tried the following ways
2.1 When using simply the .env in the Laravel source code (which is inside the WSL)
2.2 Creating a .devdbrc with the following content:
[
{
"name": "My test MySQL database",
"type": "mysql",
"host": "127.0.0.1" // also tried with "mysql" (docker name),
"port": "3306",
"username": "*******",
"password": "*******",
"database": "******" // <-- the database to show in VS Code DevDb view
},
]
As shown in the logs, only SQLite Database File Picker is available on the GUI
Expected behavior
DevDB working with containerized Laravel mysql
Screenshots
DevDB logs:
[Init] Getting available providers...
[Init] Checking provider: Laravel Local SQLite (default)
[Init] Checking provider: SQLite Database File Picker
[Init] Checking provider: Config File
[Init] Checking provider: Laravel Mysql (with Sail support)
[Laravel MySQL] Checking if Laravel MySQL provider can be used in the current workspace...
[Laravel env file parser] Fetching connection details from .env file. Laravel connection: mysql
[Init] Checking provider: Laravel PostgreSQL
[Laravel env file parser] Fetching connection details from .env file. Laravel connection: pgsql
[Init] Checking provider: DDEV - MySQL
[Postgres DDEV] Not a DDEV project
[Init] Checking provider: DDEV - PostgreSQL
[Postgres DDEV] Not a DDEV project
[Init] Checking provider: Adonis MySQL (Lucid ORM)
[Adonis PostgreSQL] No Adonis database config file found
[MySQL AdonisJS] Not an AdonisJS project
[Init] Checking provider: Adonis PostgreSQL (Lucid ORM)
[Adonis PostgreSQL] No Adonis database config file found
[Postgres AdonisJS] Not an AdonisJS project
[Init] Laravel Local SQLite (default) useable in workspace: no
[Init] SQLite Database File Picker useable in workspace: yes
[Init] DDEV - MySQL useable in workspace: no
[Init] DDEV - PostgreSQL useable in workspace: no
[Init] Adonis MySQL (Lucid ORM) useable in workspace: no
[Init] Adonis PostgreSQL (Lucid ORM) useable in workspace: no
[Init] Config File useable in workspace: no
[Laravel env file parser] Laravel/mysql2 connection details: connection=mysql, host=mysql, username=root, database=portal_gestao_prod
[Laravel env file parser] Laravel/postgres connection details: connection=mysql, host=mysql, username=root, database=portal_gestao_prod
[Laravel env file parser] Connection type mismatch: expected "pgsql", found "mysql"
[Init] Laravel PostgreSQL useable in workspace: no
[Laravel env file parser] Laravel/mysql2 connection details: mysql mysql 3306 root portal_gestao_prod
[Connector - Laravel provider - env file parser] Attempting to connect to database: dialect=mysql2, host=mysql, port=3306, username=root, database=portal_gestao_prod
[Laravel MySQL] Connection status: successful
[Laravel MySQL] Creating MySQL engine...
[Laravel MySQL] OK
[Init] error: Laravel Mysql (with Sail support) - Error: connect ETIMEDOUT
[Init] Available providers: SQLite Database File Picker
Additional context
Host Windows Machine with WSL inside
WSL running docker with different containers for mysql, nginx and Laravel.
mysql 3306 is open to Windows host
Not using Laravel Sail


