Jump to content

dbConnect


Rat32

Recommended Posts

Posted

Hi . I have a problem. I can not connect to the database using the dbConnect . The only thing it shows me dbConnect ; could not connect . And nothing more. Below is a code of dbConnect . Please help.

database = dbConnect("mysql", "dbname=db_****;host=mysql-ols1.ServerProject.pl", "db_****","****","share=1") 

ps. Hosting definitely supports external connection and the data is correct .

Posted

Try like this:

db = "theDatabaseName" 
host = "theHostName" 
user = "theUsername" 
pass = "thePassword" 
port = -- Ex: 2456 
  
db = dbConnect( "mysql", "dbname="..db..";host="..host..";port="..port, user, pass, "share=1" ) 

Posted

If all the connection details are correct, the host itself could be blocking remote connections. Check debugscript (/debugscript 3) to see what it says about the connection error.

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