laravel / framework

The Laravel Framework.
https://laravel.com
MIT License
32.42k stars 10.99k forks source link

Change MariaDB commandline name as per official documentation from MariaDB 10.5 #52843

Closed aledelgo closed 1 month ago

aledelgo commented 1 month ago

Laravel Version

11.x

PHP Version

any

Database Driver & Version

MariaDB

Description

As per official documentation https://mariadb.com/kb/en/mysql-command-line-client/ from MariaDB 10.2 the commandline name of mariadb is not mysql anymore but mariadb this make a lot of artisan command related to db pretty unusable when using mariadb 10.2+ (eg. with laradock) (except form manually symlinking obviously)

Here i suppose the code where to inject a new logic for commandline name generation https://github.com/laravel/framework/blob/3e56cc4cd0700dbcb540a40f263e4180867549e1/src/Illuminate/Database/Console/DbCommand.php#L136C13-L136C34

Steps To Reproduce

try to use any artisan db / migrate command on a docker with a clean MariaDB 10.2+

staudenmeir commented 1 month ago

Hi @aledelgo, This will be changed in Laravel 12: #51505

crynobone commented 1 month ago

Thanks @staudenmeir