What could be the reason and where to fix it? This message pops up when the installer tries to contact the database.

No connection to the database .n Access denied for user 'xnova' @ 'localhost' (using password: YES)

Added from comment.

Message: SQL Error: No database selected
Query Code: SELECT HIGH_PRIORITY * FROM config WHERE uni = '1';
File: /home/xnova/www_html/includes/classes/class.MySQLi.php
Line: 96
URL: http://xnova.gomel.by/index.php
PHP-Version: 5.2.4-2ubuntu5.17
PHP-API: apache2handler
2Moons Version:
Debug Backtrace:
#0 ./includes/classes/class.MySQLi.php(113): DB_mysqli->query('SELECT HIGH_PRI...')
#1 ./includes/GeneralFunctions.php(117): DB_mysqli->uniquequery('SELECT HIGH_PRI...')
#2 ./includes/common.php(90): getConfig(1)
#3 ./index.php(46): require('/home/xnova/www...')

    1 answer 1

    The user xnova does not have access rights, if you administer the database yourself, then look in the direction of setting the access rights of database users.

    Alternatively, you could add a user, but allow him to connect only from a specific host.

    Try to connect to the database for example via phpmyadmin or the console to check access problems or problems with the installer.

    • No database is selected (mysql_select_db) or the wrong database is selected. - Alex Kapustin
    • "2moons" as I understood it is the browser game engine, and "xnova" is the user from whom you tried to connect to the database. If the database is not supported by you, then most likely you simply did not specify the installer, server, user name or password to this account in the installer. - uvlad 2:29 pm