| SYSTEM INFORMATION | |
|---|---|
| OS type and version | Rocky Linux 9.7 |
| Webmin version | 2.610 |
| Usermin version | 2.510 |
| Virtualmin version | 7.50.2 Professional |
| Theme version | 26.20 |
| Apache version | 2.4.62 |
| Package updates | All installed packages are up to date |
Environment
- MariaDB 10.11.15 (official repo)
- Perl 5.32
- DBI installed
- DBD::MariaDB installed and working
- DBD::mysql unavailable (conflicts with MariaDB 10.11)
Hello everyone,
After upgrading my server from Rocky Linux 9.6 to 9.7, Webmin started showing this warning:
“The Perl module DBD::mysql is not installed… Webmin will not be able to reliably access your MariaDB database.”
However, my setup only uses MariaDB 10.11.x (from the official MariaDB.org repository), and I have successfully installed and configured DBD::MariaDB, which works correctly with DBI.
Here is some important context about how this situation came up:
Initial Server Setup
Before installing Virtualmin/Webmin on Rocky Linux 9.5:
- I disabled the Rocky AppStream MariaDB 10.5 module, because WordPress requires MariaDB 10.6+.
- I installed MariaDB 10.11.x from official MariaDB upstream.
- I likely did not disable the MySQL 8.x module at that time.
- Then I installed Virtualmin/Webmin.
During that installation, Webmin automatically installed:
perl-DBD-MySQL
and everything worked as expected.
Upgrading from 9.5 → 9.6 produced no conflicts.
Conflicts Appear Only in Rocky Linux 9.7
When upgrading to Rocky Linux 9.7, the new MySQL module stream caused conflicts with MariaDB 10.11 client libraries.
To complete the upgrade, I had to:
- disable the MySQL 8.x module
- remove perl-DBD-MySQL
- add DNF exclude rules + versionlocks
- proceed with the upgrade
After this, DBD::mysql cannot be installed anymore (neither via package nor CPAN) because it is ABI-incompatible with MariaDB 10.11.
DBD::MariaDB Installed and Working
I installed DBD::MariaDB successfully and updated Webmin configuration:
Use DBI to connect if available → YES
Path to MariaDB shared libraries directory →
/usr/local/lib64/perl5/5.32
Test command:
perl -MDBD::MariaDB -e 'print "OK\n"'
Output:
OK
So DBD::MariaDB is working and DBI can load it properly.
But Webmin Still Shows Warning for DBD::mysql
Even with the correct MariaDB driver installed, Webmin still requires:
DBD::mysql
and does not detect DBD::MariaDB.
This may also affect Webmin’s Backup/Restore functionality, because the module internally prefers the MySQL driver only.
What I believe needs adjustment
- If MariaDB server is detected, Webmin should also accept DBD::MariaDB
- The module should not require DBD::mysql when MariaDB-only systems cannot install it (Rocky Linux 9.7 enforces ABI incompatibility with DBD::mysql when MariaDB 10.11 is used)
- When DBI + DBD::MariaDB work correctly, the warning should disappear
This behavior did NOT occur on Rocky Linux 9.5 or 9.6 — only after the 9.7 update changed MySQL module streams.
If needed, I can provide logs, additional tests, or configuration details.
Thank you in advance!