Skip to content

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

@omergy

Description

@omergy

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:

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions