Page 1 of 1

[SOLVED] Acess denied to database

Posted: 30 Nov 2019, 12:25
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.

Re: Acess denied to database

Posted: 30 Nov 2019, 13:53
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.

Re: [SOLVED] Acess denied to database

Posted: 07 Apr 2020, 13:50
by toffe
If you still suffer from any issue, please contact me on Discord. https://pypla.net/en/latest/support.html