Skip to content

[12.x] Add option to disable MySQL SSL verification for schema dumping and migrations #10408

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

Open
wants to merge 1 commit into
base: 12.x
Choose a base branch
from

Conversation

mohammadrasoulasghari
Copy link
Contributor

This PR adds support for disabling SSL certificate verification on MySQL connections by setting the PDO option MYSQL_ATTR_SSL_VERIFY_SERVER_CERT to false.

This resolves errors related to self-signed SSL certificates encountered during schema:dump, migrate:fresh, and similar commands.

The option is configured via the database connection's options array in config/database.php.

Continuation of laravel/framework#55683

@mohammadrasoulasghari mohammadrasoulasghari force-pushed the feature/disable-mysql-ssl-for-schema-dump branch from 5d35e03 to 9baf247 Compare May 16, 2025 15:57
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.

1 participant