Skip to content
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

Fix deprecation warning from MariaDB 11 #1904

Merged
merged 2 commits into from
Nov 1, 2023
Merged

Fix deprecation warning from MariaDB 11 #1904

merged 2 commits into from
Nov 1, 2023

Conversation

ALameLlama
Copy link
Contributor

@ALameLlama ALameLlama commented Oct 27, 2023

With MariaDB 11 it'll complain with deprecated program name. this updates it to use mariadb instead of mysql to fix it :)

Before:

    homestead-testing: Configuration file '/etc/mysql/debian-start'
    homestead-testing:  ==> Deleted (by you or by a script) since installation.
    homestead-testing:  ==> Package distributor has shipped an updated version.
    homestead-testing:  ==> Using new file as you requested.
    homestead-testing: Installing new version of config file /etc/mysql/debian-start ...
    homestead-testing: renamed '/etc/logrotate.d/mysql-server' -> '/etc/logrotate.d/mysql-server.dpkg-bak'
    homestead-testing: Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /lib/systemd/system/mariadb.service.
    homestead-testing: mariadb-extra.socket is a disabled or a static unit, not starting it.
    homestead-testing: mariadb-extra.socket is a disabled or a static unit, not starting it.
    homestead-testing: Setting up libcgi-fast-perl (1:2.15-1) ...
    homestead-testing: Setting up mariadb-server-compat (1:11.1.2+maria~ubu2004) ...
    homestead-testing: Processing triggers for systemd (245.4-4ubuntu3.19) ...
    homestead-testing: Processing triggers for man-db (2.9.1-1) ...
    homestead-testing: Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
    homestead-testing: mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
    homestead-testing: mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
    homestead-testing: mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
    homestead-testing: mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
    homestead-testing: mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
    homestead-testing: mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
    homestead-testing: mysql_upgrade: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb-upgrade' instead
    homestead-testing: Looking for 'mariadb' as: mariadb
    homestead-testing: Looking for 'mariadb-check' as: mariadb-check

...

==> homestead-testing: Running provisioner: Creating MySQL / MariaDB Database: homestead (shell)...
    homestead-testing: Running: script: Creating MySQL / MariaDB Database: homestead
    homestead-testing: We didn't find MySQL ($mysql), skipping $DB creation
    homestead-testing: mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
==> homestead-testing: Running provisioner: Creating MySQL / MariaDB Database: totally_real_db (shell)...
    homestead-testing: Running: script: Creating MySQL / MariaDB Database: totally_real_db
    homestead-testing: We didn't find MySQL ($mysql), skipping $DB creation
    homestead-testing: mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
==> homestead-testing: Running provisioner: Creating MySQL / MariaDB Database: totally_real_db_two (shell)...
    homestead-testing: Running: script: Creating MySQL / MariaDB Database: totally_real_db_two
    homestead-testing: We didn't find MySQL ($mysql), skipping $DB creation
    homestead-testing: mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
==> homestead-testing: Running provisioner: Update Composer (shell)...

After:

    homestead-testing: Configuration file '/etc/mysql/debian-start'
    homestead-testing:  ==> Deleted (by you or by a script) since installation.
    homestead-testing:  ==> Package distributor has shipped an updated version.
    homestead-testing:  ==> Using new file as you requested.
    homestead-testing: Installing new version of config file /etc/mysql/debian-start ...
    homestead-testing: renamed '/etc/logrotate.d/mysql-server' -> '/etc/logrotate.d/mysql-server.dpkg-bak'
    homestead-testing: Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /lib/systemd/system/mariadb.service.
    homestead-testing: mariadb-extra.socket is a disabled or a static unit, not starting it.
    homestead-testing: mariadb-extra.socket is a disabled or a static unit, not starting it.
    homestead-testing: Setting up libcgi-fast-perl (1:2.15-1) ...
    homestead-testing: Setting up mariadb-server-compat (1:11.1.2+maria~ubu2004) ...
    homestead-testing: Processing triggers for systemd (245.4-4ubuntu3.19) ...
    homestead-testing: Processing triggers for man-db (2.9.1-1) ...
    homestead-testing: Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
    homestead-testing: Looking for 'mariadb' as: mariadb
    homestead-testing: Looking for 'mariadb-check' as: mariadb-check
    homestead-testing: Phase 1/8: Checking and upgrading mysql database
    homestead-testing: Processing databases

...

    homestead-testing: Running: script: Restart Webserver
==> homestead-testing: Running provisioner: Creating MySQL / MariaDB Database: homestead (shell)...
    homestead-testing: Running: script: Creating MySQL / MariaDB Database: homestead
==> homestead-testing: Running provisioner: Creating MySQL / MariaDB Database: totally_real_db (shell)...
    homestead-testing: Running: script: Creating MySQL / MariaDB Database: totally_real_db
==> homestead-testing: Running provisioner: Creating MySQL / MariaDB Database: totally_real_db_two (shell)...
    homestead-testing: Running: script: Creating MySQL / MariaDB Database: totally_real_db_two
==> homestead-testing: Running provisioner: Update Composer (shell)...

@ALameLlama ALameLlama changed the title FIx deprecation warning from MariaDB 11 Fix deprecation warning from MariaDB 11 Oct 29, 2023
Copy link
Contributor

@svpernova09 svpernova09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@svpernova09 svpernova09 merged commit 6c9656a into laravel:main Nov 1, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants