Jump to content

why can't I connect to the database?


Andrew75t

Recommended Posts

Posted (edited)

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
  • MTA Team
Posted

Wrong credentials as @Patrickstated or it could be wrong permissions over the table/db you want to use.

DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp

 
Posted

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!

  • MTA Team
Posted
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.

DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp

 

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...