FAILED TO CONNECT TO MY DATABASE

Avatar
  • Answered
I failed to connect to my database with my "hoster" yet I can connect to the database with my local server wamp with the same script.

$connect = mysqli_connect("localhost:3306", "ModabidZ", "succes@123", "modabidzci_") or
die("Problem to connect to the server.");

when I execute, it shows: Problem to connect to the server

What can be the problem? How can I solve it?
Thanks for helping
Avatar
johnpaulb-imhs1
Hello, Thank you for your contacting us about an issue connecting to your database. Ensure you have created the user, and assigned them privileges to access the specific database. If you have any further questions, feel free to post them below. Thank you, John-Paul