Skip to content

Import on MariaDB 11 display deprecation message #1693

@teluq-pbrideau

Description

@teluq-pbrideau

Describe the Bug

When creating a database with an sql parameter on MariaDB 11.x, a message is displayed:

Notice: /Stage[main]/Profile::Mariadb::Database/Mysql::Db[phpmyadmin]/Exec[phpmyadmin-import]/returns: mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead

Note it is displayed as a notice in the puppet output, not as a warning, so not that bad an error.

Expected Behavior

No deprecated message should be displayed

Steps to Reproduce

Create a database with an sql parameter on MariaDB 11.x

mysql::db { 'phpmyadmin':
  [...]
  sql => ['/opt/phpmyadmin/sql/create_tables.sql'],
}

Environment

  • Module version 16.3.0
  • MariaDB 11.8
  • Platform Rocky Linux 8

Additional Context

The code use mysql instead of $mysql::params::client_package_name EDIT: There should probably be a new params, because thinking more than 2 seconds: it should probably not be related to the package name.

https://github.com/puppetlabs/puppetlabs-mysql/blob/main/manifests/db.pp#L127

Should be a quick fix, I will provide shortly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions