[SOLVED] LocalDB Try to connect to MySQL server on '' with database ''

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

Post Reply
c0xcopi
pedestrian
pedestrian
Posts: 5
Joined: 07 Jul 2021 18:13
Owned TM-games: TMNF

[SOLVED] LocalDB Try to connect to MySQL server on '' with database ''

Post by c0xcopi » 16 Jul 2021 14:12

I get the following error in my aseco.log file when trying to start aseco:

Code: Select all

[07/16,10:00:37] [LocalDB] Try to connect to MySQL server on '' with database ''
And then another error, which I believe is a result of the first one.

It looks like aseco fails to read the data from localdatabase.xml, however the file looks fine to me, this is how it looks like:

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<settings>
        <!-- MySQL Server Settings -->
        <mysql_server>localhost</mysql_server>
        <mysql_login>tmf</mysql_login>
        <mysql_password>###</mysql_password>
        <mysql_database>aseco</mysql_database>
        <!-- Do you want XASECO to display newly driven records? -->
        <display>true</display>
        <!-- Limit the highest record that will be displayed to all? -->
        <!-- If lower than $maxrecs, records above this limit will -->
        <!-- only be displayed to the pertaining player -->
        <limit>50</limit>

        <messages>
                <!-- record messages -->
                <record_new>{#server}>> {#highlite}{1}{#record} secured his/her {#rank}{2}{#record}. Local Record!  {3}: {#highlite}{4}{#record} $n({#rank}{5}{#highlite}{6}{#record})</record_new>
                <record_equal>{#server}>> {#highlite}{1}{#record} equaled his/her {#rank}{2}{#record}. Local Record!  {3}: {#highlite}{4}</record_equal>
                <record_new_rank>{#server}>> {#highlite}{1}{#record} gained the {#rank}{2}{#record}. Local Record!  {3}: {#highlite}{4}{#record} $n({#rank}{5}{#highlite}{6}{#record})</record_new_rank>
                <record_first>{#server}>> {#highlite}{1}{#record} claimed the {#rank}{2}{#record}. Local Record!  {3}: {#highlite}{4}</record_first>
        </messages>
</settings>
I also made sure that the database does exist:

Code: Select all

MariaDB [(none)]> SHOW DATABASES;
+--------------------+
| Database           |
+--------------------+
| aseco              |
| information_schema |
| mysql              |
| performance_schema |
+--------------------+
4 rows in set (0.00 sec)
Does anyone know what I'm doing wrong?
Last edited by c0xcopi on 16 Jul 2021 16:08, edited 1 time in total.

c0xcopi
pedestrian
pedestrian
Posts: 5
Joined: 07 Jul 2021 18:13
Owned TM-games: TMNF

Re: [(X)aseco] LocalDB Try to connect to MySQL server on '' with database ''

Post by c0xcopi » 16 Jul 2021 16:08

Actually, the problem was really simple to fix

I accidentally changed lines in the plugins/plugin.localdatabase.php, and when I redownloaded the plugin file and replaced the old one, the error was gone.

Post Reply