connecting to mysql db hosted on 1and1
Posted: Wed May 06, 2015 7:15 pm
Hi everyone,
I'm having a bit of trouble connecting to a mysql database that's hosted on 1and1. here is the code i currently have:
Any advice on how i may be able to resolve this? has anyone else tried to host their DB on 1and1?
Thanks in advance!
-Sean
I'm having a bit of trouble connecting to a mysql database that's hosted on 1and1. here is the code i currently have:
Code: Select all
global gConnectionID
put "dbXXXXXXX.db.1and1.com" into tDatabaseAddress
put "dbXXXXXXX" into tDatabaseName
put "dbXXXXXXX" into tDatabaseUser
put "XXXXX" into tDatabasePassword
put revOpenDatabase("MySQL", tDatabaseAddress, tDatabaseName, tDatabaseUser, tDatabasePassword) into tResult
if tResult is a number then
put tResult into gConnectionID
answer "it worked"
else
put empty into gConnectionID
answer error tResult
end ifThanks in advance!
-Sean