Jump to content

dbConnect couldn't connect, help please!


King12

Recommended Posts

This is what I use to connect my database:
local user = "xXMADEXx" 
local pass = "" 
local host = "127.0.0.1" 
local db = "" 
db = dbConnect ( "mysql", "host="..host..";dbname="..db , user, pass ) 

If it dosn't work then its the MySQL host...

user,pass is about the the phpmyadmin login information ?

Link to comment
This is what I use to connect my database:
local user = "xXMADEXx" 
local pass = "" 
local host = "127.0.0.1" 
local db = "" 
db = dbConnect ( "mysql", "host="..host..";dbname="..db , user, pass ) 

If it dosn't work then its the MySQL host...

user,pass is about the the phpmyadmin login information ?

yea. Instead of using "localhost" use "127.0.0.1"

Link to comment
This is what I use to connect my database:
local user = "xXMADEXx" 
local pass = "" 
local host = "127.0.0.1" 
local db = "" 
db = dbConnect ( "mysql", "host="..host..";dbname="..db , user, pass ) 

If it dosn't work then its the MySQL host...

user,pass is about the the phpmyadmin login information ?

yea. Instead of using "localhost" use "127.0.0.1"

still won't connect, even with the correct values

Link to comment

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