yiisoft/db-mysql

Check DBMS by connection instead of environment variable

Open

#446 opened on Nov 23, 2025

View on GitHub
 (0 comments) (0 reactions) (0 assignees)PHP (20 forks)auto 404
good first issuetype:test

Repository metrics

Stars
 (43 stars)
PR merge metrics
 (PR metrics pending)

Description

Currently we use environment variable YII_MYSQL_TYPE to check DBMS type (MySQL or MariaDB). Instead of relying on the environment variable, we can query the DBMS directly to determine the type, and then cache the result in TestConnection.

Contributor guide