Trying to add a MariaDB user using Webmin, results in this error message:
Failed to save user : SQL create user ‘xyz’@‘localhost’ identified with mysql_native_password by ‘xxxxxxxx’ failed : You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘by ‘xxxxxxxx’’ at line 1
Syntax Mismatch: MariaDB changed how it handles the IDENTIFIED clause. The IDENTIFIED WITH 'plugin' BY 'password' syntax is more common in standard MySQL, but MariaDB often expects IDENTIFIED VIA or simply IDENTIFIED BY.
Webmin Compatibility: It looks like Webmin is sending a legacy MySQL command that your current Rocky Linux MariaDB environment (likely 10.11 or newer) finds “deprecated” or syntactically incorrect.
[!TIP] Since you are on Rocky Linux 10, you are likely running a very recent version of MariaDB where the VIA keyword has replaced WITH for plugin declarations.
Can Webmin be updated to support the new syntax in MariaDB?
Viewing the user named “root”, the Current hashed password field shows invalid. This happens because MariaDB 10.4+ moved user credentials from the mysql.user table to a more secure internal structure. Webmin is likely trying to read the old Password column, which is now blank or deprecated, causing it to display “invalid” even if your login actually works.
So there may be a number of differences in the latest MariaDB that Webmin is not aware of.
Sorry but I’m not clear on how to apply the patch. Just copy the mysql-lib.pl file over an existing file and restart Webmin? In GitHub I just “Download the raw file”?
[root@n1 ~]# webmin list-config --help
Usage:
webmin list-config [options]
Options:
--help, -h
Print this usage summary and exit.
--config, -c
Specify the full path to the Webmin configuration directory.
Defaults to "/etc/webmin"
--module, -m
Specify which module configuration to display. If none given,
configuration will be assumed to be the Webmin core configuration
(/etc/webmin/miniserv.conf).
--option, -o
Specify a single option to display. By default, the entire
configuration file will be displayed. If this option is given, only
the option specified will be shown.
--describe, -d
Display the description of the option from the module "config.info"
file, instead of it's current value. This option is only available
for modules, as miniserv.conf does not have a config.info.
Thank you very much for the information. I have been using Webmin for many years, currently on nine cloud servers and one local, but I have rarely needed to visit the forum so all of those options are new to me. I guess that is a testament to the stability and reliability of Webmin in my experience.
Strange and annoying that the text I pasted in is not displayed correctly, The blue text is not exactly the command I sent to my server or pasted in to this editor.