Jump to content

why can't I connect to the database?


Andrew75t

Recommended Posts

Please tell me why can't I connect to the database? Using local Denver server

 

Starting loginPanel
[2020-08-11 23:38:55] WARNING: loginPanel\server.lua:15: Bad usage @ 'dbConnect' [Access denied for user 'username'@'localhost' (using password: YES)]
[2020-08-11 23:38:55] INFO: Connection with database couldn't be established.
[2020-08-11 23:38:55] start: Resource 'loginPanel' started

 

Edited by Andrew75t
Link to comment

Thanks for the answer.
I found a solution:
I had to go to phpmyadmin and give the user all rights in the Users tab.
The error was that the user lacked rights. Because of this, I was unable to connect to the database.
Have a nice day and fewer bugs in the code!

Link to comment
  • MTA Team
6 hours ago, Andrew75t said:

Thanks for the answer.
I found a solution:
I had to go to phpmyadmin and give the user all rights in the Users tab.
The error was that the user lacked rights. Because of this, I was unable to connect to the database.
Have a nice day and fewer bugs in the code!

Good to know, though I don't recommend giving a user full permissions over your mysql server. You should identify what permissions you need and give the user those.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...