Andrew75t Posted August 11, 2020 Posted August 11, 2020 (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 August 11, 2020 by Andrew75t
Moderators Patrick Posted August 11, 2020 Moderators Posted August 11, 2020 Probably wrong credentials.
MTA Team 0xCiBeR Posted August 12, 2020 MTA Team Posted August 12, 2020 Wrong credentials as @Patrickstated or it could be wrong permissions over the table/db you want to use.
Andrew75t Posted August 12, 2020 Author Posted August 12, 2020 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 0xCiBeR Posted August 12, 2020 MTA Team Posted August 12, 2020 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now