Skip to content

Commit 5d35e03

Browse files
Add option to disable MySQL SSL verification during schema dump and migrations
1 parent ae9a6f5 commit 5d35e03

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

migrations.md

+10
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,16 @@ php artisan schema:dump --database=testing --prune
7070

7171
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.
7272

73+
> 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 under your MySQL connection configuration:
74+
>
75+
> ```php
76+
> 'options' => [
77+
> PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false,
78+
> ],
79+
> ```
80+
>
81+
> This option disables SSL certificate verification and prevents related connection errors.
82+
7383
> [!WARNING]
7484
> Migration squashing is only available for the MariaDB, MySQL, PostgreSQL, and SQLite databases and utilizes the database's command-line client.
7585

0 commit comments

Comments
 (0)