gitlab-ci-pipeline-php icon indicating copy to clipboard operation
gitlab-ci-pipeline-php copied to clipboard

Switch to mysql-client

Open Synchro opened this issue 3 years ago • 5 comments

Add MySQL's key and repo and use it to install mysql-client in place of mariadb-client, should fix #117.

I have no idea how to test this, but I've tested the individual commands.

Synchro avatar Feb 04 '21 09:02 Synchro

Thanks @Synchro

Can you take a look on the alpine images as well? Thanks.

edbizarro avatar Feb 04 '21 12:02 edbizarro

That's not quite so easy. Alpine doesn't have a MySQL package, or rather it does, but it actually installs MariaDB. It seems that MySQL itself contains support for Alpine, but Alpine does not in turn provide a packaged version of it. There is an open request to add a real MySQL package to Alpine, but it's not getting much love, so I commented on it to try to push things along.

Synchro avatar Feb 04 '21 16:02 Synchro

Any chance of merging this? All projects on gitlab using Laravel 8 schema dumps will be breaking because of this issue. What's here won't fix Alpine, but it will at least fix Debian, which I expect is the majority.

Synchro avatar Feb 09 '21 09:02 Synchro

This would be very useful for us, we recently updated our system to mysql 8 and it would be nice to be able to have the same version running ok for gitlab

CptOrange16 avatar Jul 29 '22 10:07 CptOrange16

For anyone running into this, I solved this by simply switching to a different image, no other changes required, and it just works:

image: lorisleiva/laravel-docker:8.0

Synchro avatar Jul 29 '22 10:07 Synchro