Jump to content
  • Create New...
  • 0

Could not connect to the database



  • I get the following error after starting up my FiveM server and loading FivePD. (Shown in first image)


  • In the second image, is my 'config.json' file. It shows what I have entered. I have also tried fixing the issue by leaving the 'password' empty and entering a whole different user.


  • In the third image, I show what my phpmyadmin looks like. I created a new database called 'fivepd' with the collation 'utf8_bin'.


I've reinstalled apache, fivem, and fivepd and still get the same error.

If anyone knows of a fix, I'd appreciate it a lot! Thanks!




Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0
7 minutes ago, BGHDDevelopment said:

If the database is hosted on the machine try putting the ip as

I finally fixed it!!
I changed the IP to '' like you stated above and then I changed the port to the pma port which is '3306' and it worked!!


Thanks for your help @BGHDDevelopment and @ImAlex28

Link to post
Share on other sites

This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

Important Information

Please view the site: Terms of Use, Privacy Policy, and Guidelines. // IMPORTANT: We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.