You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error when loading/dumping database schema "ERROR 2026 (HY000): TLS/SSL error: SSL is required, but the server does not support it". No option for "--skip-ssl" for mariadb
#54269
Open
omergy opened this issue
Jan 20, 2025
· 3 comments
mariadb-client versions 11+ sets the --ssl option to true per default.
This causes the following error whenever you load or dump a schema:
ERROR 2026 (HY000): TLS/SSL error: SSL is required, but the server does not support it
This can be avoided by using the --skip-ssl command, but Laravel has no option to enter/configure it.
Steps To Reproduce
Example with dumping:
install mariadb-client 11 or higher
php artisan schema:dump
error
Example with loading:
install mariadb-client 11 or higher
add a dump to database/schema
in tests/TestCase.php add use RefreshDatabase trait
namespace Tests;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use RefreshDatabase;
}
php artisan test
error
The text was updated successfully, but these errors were encountered:
As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.
If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.
It's relevant to this file vendor/laravel/framework/src/Illuminate/Database/Schema/MySqlSchemaState.php however everything there is currently based on database.php config settings. Would be nice if there was a passable argument that appended --skip-ssl to the string. As a temporary solution, one can just add $value .= ' --skip-ssl'; at the end of the connectionString method.
Laravel Version
11
PHP Version
8.3
Database Driver & Version
Mariadb
Description
mariadb-client versions 11+ sets the
--ssl
option to true per default.This causes the following error whenever you load or dump a schema:
This can be avoided by using the
--skip-ssl
command, but Laravel has no option to enter/configure it.Steps To Reproduce
Example with dumping:
php artisan schema:dump
Example with loading:
database/schema
tests/TestCase.php
adduse RefreshDatabase
traitphp artisan test
The text was updated successfully, but these errors were encountered: