Unable to log in PhpMyAdmin. You probably did not create a configuration file

Created:

2016-11-16 13:07:27 UTC

Modified:

2017-08-16 17:00:07 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Unable to log in PhpMyAdmin. You probably did not create a configuration file

Applicable to:

  • Plesk 10.x for Linux

Symptoms

  • Unable to log in to PhpMyadmin for some domains:

    You probably did not create a configuration file You might want to use the setup script to create one.
    Error
    MySQL said:
    Cannot connect: invalid settings.

  • /var/log/sw-cp-server/error_log contains:

    Exception: PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Premature end of data (mysqlnd_wireprotocol.c:553); File: /usr/local/psa/admin/plib/DatabaseManagerMySQL.php, Line: 235

    file: /usr/local/psa/admin/smb/application/library/Smb/Exception/Syntax.php
    line: 55
    code: 0
    trace: #0 [internal function]: Smb_Exception_Syntax::handleError(2, 'mysql_connect()...', '/usr/local/psa/...', 235, Array)
    #1 /usr/local/psa/admin/plib/DatabaseManagerMySQL.php(235): mysql_connect('localhost:3306', 'bug115166_12191', 'BUG115166_20783...')
    #2 /usr/local/psa/admin/plib/DatabaseManagerMySQL.php(261): DatabaseManagerMySQL->bug115166(Resource id #343)
    #3 /usr/local/psa/admin/plib/DatabaseManagerMySQL.php(55): DatabaseManagerMySQL->isDatabaseNameUsedImpl('admin_web24', Resource id #343)
    #4 /usr/local/psa/admin/plib/DatabaseManager.php(72): DatabaseManagerMySQL->createDatabaseImpl('admin_web24', Array, Resource id #343)
    #5 /usr/local/psa/admin/smb/application/library/Smb/Form/Final/Database.php(205): DatabaseManager->createDatabase(Object(Database))
    #6 /usr/local/psa/admin/smb/application/controllers/DatabaseController.php(172): Smb_Form_Final_Database->processForm()
    #7 /usr/local/psa/admin/plib/Zend/Controller/Action.php(513): DatabaseController->createAction()

Cause

Internal Plesk issue with id PPPM-259

Resolution

The issue is fixed since Plesk 11.0.9. Please consider upgrading your Plesk installation.

OR

Replace the /usr/local/psa/admin/plib/DatabaseManagerMySQL.php file with attached one .

Attachments:

Have more questions? Submit a request
Please sign in to leave a comment.