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" ) 

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

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