Hello,
I am installing the MariaDB server on Rocky Linux 10. When I check the status of the mariadb, the result is:
● mariadb.service - MariaDB 10.11 database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; preset: disabled)
Active: active (running) since Mon 2025-07-07 13:03:51 CEST; 6s ago
Invocation: 25a05659fe4d4abda7e196db36c016ad
Docs: man:mariadbd(8)
systemd | MariaDB Documentation
Process: 1756 ExecStartPre=/usr/libexec/mariadb-check-socket (code=exited, status=0/SUCCESS)
Process: 1778 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir mariadb.service (code=exited, status=0/SUCCESS)
Process: 1880 ExecStartPost=/usr/libexec/mariadb-check-upgrade (code=exited, status=0/SUCCESS)
Main PID: 1866 (mariadbd)
Status: “Taking your SQL requests now…”
Tasks: 12 (limit: 22972)
Memory: 206.5M (peak: 230.4M)
CPU: 1.840s
CGroup: /system.slice/mariadb.service
└─1866 /usr/libexec/mariadbd --basedir=/usr
Jul 07 13:03:51 rl10.srv.lan mariadb-prepare-db-dir[1818]: you need to be the system ‘mysql’ user to connect.
Jul 07 13:03:51 rl10.srv.lan mariadb-prepare-db-dir[1818]: After connecting you can set the password, if you would need to be
Jul 07 13:03:51 rl10.srv.lan mariadb-prepare-db-dir[1818]: able to connect as any of these users with a password and without sudo
Jul 07 13:03:51 rl10.srv.lan mariadb-prepare-db-dir[1818]: See the MariaDB Knowledgebase at MariaDB Documentation | MariaDB Documentation
Jul 07 13:03:51 rl10.srv.lan mariadb-prepare-db-dir[1818]: Please report any problems at https://mariadb.org/jira
Jul 07 13:03:51 rl10.srv.lan mariadb-prepare-db-dir[1818]: The latest information about MariaDB is available at https://mariadb.org/.
Jul 07 13:03:51 rl10.srv.lan mariadb-prepare-db-dir[1818]: Consider joining MariaDB’s strong and vibrant community:
Jul 07 13:03:51 rl10.srv.lan mariadb-prepare-db-dir[1818]: Contribute - MariaDB.org
Jul 07 13:03:51 rl10.srv.lan (mariadbd)[1866]: mariadb.service: Referenced but unset environment variable evaluates to an empty string: MYSQLD_OPTS, _WSREP_NEW_CLUSTER
Jul 07 13:03:51 rl10.srv.lan systemd[1]: Started mariadb.service - MariaDB 10.11 database server.
I found a way of dealing with the problem “mariadb.service: Referenced but unset environment variable evaluates to an empty string: MYSQLD_OPTS, _WSREP_NEW_CLUSTER”
Is it possible to solve it in order not to face it again?