Error when creating a new SQL user

  • server debian wheezy (x86_64)
    mysql Distrib 5.5.46



    An exception has been thrown in file
    /var/www/imscp/gui/library/Functions/Shared.php at line 2753:


    =================================================================


    SQLSTATE[42000]: Syntax error or access violation: 1064 You have an
    error in your SQL syntax; check the manual that corresponds to your
    MySQL server version for the right syntax to use near '' at line 1


    Query was:


    CREATE DATABASE IF NOT EXISTS `db03pg `


    =================================================================


    Debug backtrace:
    ---------------


    File: /var/www/imscp/gui/public/client/sql_database_add.php at line
    153
    Function: execute_query()
    File: /var/www/imscp/gui/public/client/sql_database_add.php at line
    208
    Function: client_addSqlDb()

    Notelseit.com

  • @theprincy


    Space are not allowed in database names. I cannot reproduce the problem with version 1.2.11 (input is trimmed for whitespace automatically).

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