Andrew75t Posted August 11, 2020 Share 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 Link to comment
Moderators Patrick Posted August 11, 2020 Moderators Share Posted August 11, 2020 Probably wrong credentials. Link to comment
MTA Team 0xCiBeR Posted August 12, 2020 MTA Team Share Posted August 12, 2020 Wrong credentials as @Patrickstated or it could be wrong permissions over the table/db you want to use. Link to comment
Andrew75t Posted August 12, 2020 Author Share 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! Link to comment
MTA Team 0xCiBeR Posted August 12, 2020 MTA Team Share 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. Link to comment
Andrew75t Posted August 13, 2020 Author Share Posted August 13, 2020 ok, thanks for the recommendations. Link to comment
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