From 9baf247a18591c49727329531ac0f932c1d2079a Mon Sep 17 00:00:00 2001 From: mohammadrasoul-asghari Date: Fri, 16 May 2025 19:24:49 +0330 Subject: [PATCH] Add option to disable MySQL SSL verification during schema dump and migrations --- migrations.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/migrations.md b/migrations.md index a4c9d5cb4f..308520f0a9 100644 --- a/migrations.md +++ b/migrations.md @@ -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.