Rat32 Posted June 19, 2015 Share Posted June 19, 2015 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 . Link to comment
Tekken Posted June 20, 2015 Share Posted June 20, 2015 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" ) Link to comment
xXMADEXx Posted June 21, 2015 Share Posted June 21, 2015 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. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now