[SOLVED] Acess denied to database

Python 3 Server Controller for Trackmania and Shootmania for script-only modes.

Moderators: TheM, toffe, NADEO

Locked
cimrman65
Posts: 1
Joined: 30 Nov 2019, 12:11

[SOLVED] Acess denied to database

Post by cimrman65 »

Hi,

I would like to ask for help, please. I am trying to start PyPlanet, but I get this error. I followed old topic here at forum about creating new profile, but it did not help.

Code: Select all

INFO     [Main][pyplanet.core.management.commands.start] Initiated configuration and environment...
INFO     [Main][pyplanet.core.management.commands.start] -------------------------------[  PyPlanet v0.7.1  ]-------------------------------
INFO     [MainThread][pyplanet.god.process] Starting pool process for 'default'...
ERROR    [default][pyplanet.core.instance] (1044, "Access denied for user ''@'localhost' to database 'the_server_db'")
Code from base.py:

Code: Select all

DATABASES = {
        'default': {
                'ENGINE': 'peewee_async.MySQLDatabase',
                'NAME': 'the_server_db',
                'OPTIONS': {
                        'host': 'localhost',
                        'user': 'new_user',
                        'password': '',
                        'charset': 'utf8mb4',
                }
        }
}
I do not really understand these things, so I do what tutorial tells me or what I find on Google. Thanks for any help.
User avatar
TMarc
Posts: 15255
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Acess denied to database

Post by TMarc »

I don't know much about pyplanet,
but it looks like you're not passing the correct user there: the log shows user ''@'localhost',
But it should be 'new_user' (or 'new_user@localhost'), right?

Check your pyplanet configuration, where the database access is specified.
Also look into the documentation of pyplanet.
User avatar
toffe
Posts: 782
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: [SOLVED] Acess denied to database

Post by toffe »

If you still suffer from any issue, please contact me on Discord. https://pypla.net/en/latest/support.html
Locked

Return to “PyPlanet”

Who is online

Users browsing this forum: No registered users and 2 guests