Skip to content

Fix MySQL connection string to use --ssl-mode=DISABLED for modern clients#58786

Merged
taylorotwell merged 2 commits intolaravel:12.xfrom
AJenbo:mysql-fix
Feb 12, 2026
Merged

Fix MySQL connection string to use --ssl-mode=DISABLED for modern clients#58786
taylorotwell merged 2 commits intolaravel:12.xfrom
AJenbo:mysql-fix

Conversation

@AJenbo
Copy link
Contributor

@AJenbo AJenbo commented Feb 12, 2026

This PR updates MySqlSchemaState to detect the MySQL/MariaDB client version and adjust SSL flags when loading or dumping schemas.

connectionString() now to accept version info and use --ssl-mode=DISABLED for MySQL ≥ 5.7.11 when MYSQL_ATTR_SSL_VERIFY_SERVER_CERT is false, falling back to --ssl=off for older clients.

Motivation:

Related PRs/Commits:

Note:

We are testing for MariaDB in the base implementation since it's possible to use MariaDB client's with a MySQL server.

@AJenbo AJenbo force-pushed the mysql-fix branch 6 times, most recently from 60b1092 to fabf65a Compare February 12, 2026 18:09
@taylorotwell taylorotwell merged commit 8349518 into laravel:12.x Feb 12, 2026
48 of 69 checks passed
@AJenbo AJenbo deleted the mysql-fix branch February 12, 2026 21:34
AJenbo referenced this pull request Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants