Could not create/edit SQL user when using MariaDB server

  • Hallo,


    I wanted to create a new MariaDb user and all I got was:
    2016-03-09_20h11_26.png


    Message I got via E-Mail:


    Is there anyone who knows this error / who can help me?

  • @UncleSam


    This is a known bug which has been fixed in the 1.2.x branch. The fix will be available in version 1.2.16.


    Awaiting the new version, you can fix the problem as follow:


    Edit the /var/www/imscp/gui/public/client/sql_user_add.php and change line 247

    PHP
    1. if (strpos('mariadb', $config['SQL_SERVER']) !== false ||

    to

    PHP
    1. if (strpos($config['SQL_SERVER'], 'mariadb') !== false ||


    Edit /var/www/imscp/gui/public/client/client/sql_change_password.php line and change line 106

    PHP
    1. if (strpos('mariadb', $config['SQL_SERVER']) !== false ||

    to:

    PHP
    1. if (strpos($config['SQL_SERVER'], 'mariadb') !== false ||


    Once done, restart imscp_panel service.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206