Jump to content

dbConnect failed; could not connect


'LinKin

Recommended Posts

Posted

Hey,

I'm using MySQL database

dbHandler = dbConnect( "mysql", "dbname=******;host=localhost", "*********", "**********", "share=1" )

dbName is OK

dbUsername is OK

dbPassword is OK

I don't know why it's failing.. Any clue?

Need a clanwar script? Click here!

Do you want some free scripts for your DD server? Visit my website.

Posted

Try changing 'localhost' to 127.0.0.1.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
Uh, what could I use so that it allows me external connections?

Free hosts rarely accept remote connections. You have to pay for a MySQL server/webhost that has that feature enabled. Hosting24 has that feature in it, you can set remote access in cPanel simply by entering the source IP address.

If I helped you, please click the like button on the right ;) Thanks!

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