-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
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
Comments
Thank you for reporting this issue! 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. Thank you! |
It's relevant to this file |
Another solution is to add a
Personally I needed to solve this issue locally so I had my https://mariadb.com/kb/en/configuring-mariadb-with-option-files/ |
@Raitch thanks, this helped me fix it. For other visitors, please note that you need to add the custom MySQL/MariaDB-config file to the client service, which in my case was
|
In my case, I’m using
To address the SSL issue, I added the disable-ssl-verify-server-cert parameter to the my.cnf file:
ReferenceYou can find more details here: Securing Connections for Client and Server WarningPlease note that this setting disables server certificate verification, which increases the risk of a man-in-the-middle attack. This means your connection could be intercepted or tampered with, even if it is encrypted. Be cautious and fully understand the risks before using this option. |
…versions and refactoring options fixes (laravel#54269) --ssl --ssl-ca
…versions and refactoring options fixes (laravel#54269) --ssl --ssl-ca
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: