Submitted by g77 on Mon, 02/18/2019 - 05:23
After last update I can't make new virtual server Server : VPS Fresh Install Deb9 / Fresh Virtualmin LEMP bundle. (Version 1.90202181208) I have made fresh install of system and virtualmin.. (debian 9, 2gb rab) and ... I got error message
Creating MySQL login .. .. MySQL database failed! : mysql::execute_sql_logged failed : SQL alter user 'gfdn'@'localhost' identified by 'test123' 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 'user 'gfdn'@'localhost' identified by 'test123'' at line 1 at /usr/share/webmin/web-lib-funcs.pl line 1476.
I made full dev update too and no changes..
Status:
Closed (fixed)
Comments
Submitted by geissweb on Mon, 02/18/2019 - 07:31 Comment #1
Same here with:
Server version: 10.1.37-MariaDB-0+deb9u1 Debian 9.6
Submitted by hregis on Mon, 02/18/2019 - 08:24 Pro Licensee Comment #2
Hello
same error for me when i would clone a server!
Creating MySQL login .. .. Base de données MySQL a échoué! : mysql::execute_sql_logged failed : SQL alter user 'wnb.xxxxxx.net'@'localhost' identified by '2684bf895f72' manqué : Erreur de syntaxe pr�s de 'user 'wnb.xxxxxx.net'@'localhost' identified by '2684bf895f72'' � la ligne 1 at /usr/share/webmin/web-lib-funcs.pl line 1478.
Submitted by hregis on Mon, 02/18/2019 - 08:36 Pro Licensee Comment #3
for completed, the mysql user is created but with no password and the database is not created, after delete the server, the mysql user is not deleted !
Submitted by JamieCameron on Mon, 02/18/2019 - 13:28 Comment #4
Ok it looks like the problem is that classic MySQL and MariaDB have diverged in their version numbering scheme, causing Virtualmin to use the wrong SQL. MariaDB 10.1 is actually older than MySQL 8.x !
For people seeing this problem, try applying this patch : https://github.com/virtualmin/virtualmin-gpl/commit/a45a2b839bc3ffc80f25...
Submitted by hregis on Tue, 02/19/2019 - 01:09 Pro Licensee Comment #5
Hi Jamie
same error with this patch ! Debian 8 and MariaDB 10.0.38
Thank you for your help Régis
Submitted by hregis on Tue, 02/19/2019 - 01:23 Pro Licensee Comment #6
Sorry !!!! I forgot to restart virtualmin ! it's ok for me with this patch !!
Thank you Jamie
Submitted by Maverjk on Tue, 02/19/2019 - 06:36 Comment #7
Hello Same error also for me. Centos 7.6.1810 MariaDB 10.1.38. How have you restarted Virtualmin? I actually have restarted all my servers:
Apache Webserver
BIND DNS Server
Postfix Mail Server
Dovecot IMAP / POP3 Server
ProFTPD FTP Server
SSH Server
ClamAV Virus Scanning Server
SpamAssassin Filter Server
MySQL Database Server
but still the same problem using the patch. Any advice?
All right I found out by myself the way to restart virtualmin.
Since Virtualmin is a subcomponent of Webmin, you must restart Webmin in order to restart Virtualmin. 1> Connect to your VPS service via SSH. You will need to log in as the root user in order to run the restart command. 2> On the command line, type the "command /etc/init.d/webmin stop" and press Enter. Note that you may get an error message that says the Webmin service is already stopped. This is okay. 3> On the command line, type the "command /etc/init.d/webmin start" and press Enter.
NOW PATCH WORKS :)
Submitted by hregis on Tue, 02/19/2019 - 06:28 Pro Licensee Comment #8
@Maverjk go to "Webmin tab" and click "Webmin configuration" or with command line (Centos ?) with debian : systemctl restart webmin.service
Submitted by lorelin on Tue, 02/19/2019 - 10:45 Pro Licensee Comment #9
Hello, I had the same issue on Devuan ascii (systemd-free fork of Debian 9) and the fix worked well.
Thanks James ! :)
Submitted by Nico94 on Tue, 02/19/2019 - 16:08 Comment #10
Just jumping in (same problem here, it's a big issue) to get the updates.
--n
Submitted by wajdan on Thu, 02/21/2019 - 15:29 Comment #11
Hello, having same problem and i am unable to locate feature-mysql.pl file to apply that patch from github. any reference where and how to apply that patch?
thanks and regards.
Submitted by geissweb on Fri, 02/22/2019 - 01:11 Comment #12
@wajdan Depending on your OS it might be different, but for me on Debian9 the path is /usr/share/webmin/virtual-server/
Submitted by irieyuusuke on Mon, 07/29/2019 - 13:11 Comment #13
https://www.virtualmin.com/node/64694#comment-808676
CentOS7 MariaDB10.4
same issue here
Submitted by Christos_Tzeremes on Wed, 07/31/2019 - 08:43 Comment #14
QuickFix for the great Virtualmin and MariaDB 10.2 - 10.4.6
https://www.virtualmin.com/node/66733
regards to all !!!
Submitted by visualcd on Thu, 09/26/2019 - 05:01 Comment #15
REMOVE STRICT_TRANS_TABLES
For me worked editing my.cnf from Webmin > Servers > Mysql... > edit config files
Before adding next line view what you have in sql_mode in Webmin > Servers > Mysql... > MySQL System Variables from
add next line in section client : [client] init-command="set sql_mode='ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'"
then restart mysql server from dashboard and restart webmin service from ssh.
for me worked with debian 10 and mariadb 10.3 on latest version of webmin and virtualmin in sept 2019.
Sorry for my english. Not my native language.
Submitted by IssueBot on Thu, 10/10/2019 - 05:07 Comment #16
Automatically closed - issue fixed for 2 weeks with no activity.