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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@ php artisan schema:dump --database=testing --prune

You should commit your database schema file to source control so that other new developers on your team may quickly create your application's initial database structure.

> If you're using MySQL with a self-signed SSL certificate, you can disable SSL verification for schema dumping by adding the following to your **`config/database.php`** file:
>
> ```php
> 'options' => [
> PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false,
> ],
> ```
>
> This option disables SSL certificate verification and prevents related connection errors.

> [!WARNING]
> Migration squashing is only available for the MariaDB, MySQL, PostgreSQL, and SQLite databases and utilizes the database's command-line client.

Expand Down