I have set up all the functions for my application, and am looking to move my database to a server located in our office. i have been trying to figure out what i need to do to connect, and am having a bit of trouble. no matter how i insert the IP address the app will not connect to the database. I have included my current code below, and would appreciate any guidance that may be able to be provided. Should it make any difference the ip connects to phpmyadmin when used in a web browser. which i can connect to remotely using the same information but in a web broswer. I have tried the following variations for the database address:
put "https://192.168.0.2:123" into tDatabaseAddress
put "http://192.168.0.2:123" into tDatabaseAddress
put "192.168.0.2:123" into tDatabaseAddress
put "192.168.0.2" into tDatabaseAddress
Code: Select all
on openStack
global gConnectionID
put "https://192.168.0.2:123" into tDatabaseAddress
put "DB1" into tDatabaseName
put "****" into tDatabaseUser
put "****" into tDatabasePassword
put revOpenDatabase("MySQL", tDatabaseAddress, tDatabaseName, tDatabaseUser, tDatabasePassword) into tResult
if tResult is a number then
put tResult into gConnectionID
answer info "succefully connected!!" & cr & "Connection ID = " & gConnectionID
else
put empty into gConnectionID
answer error "Unable to connect." & cr & tResult
end if
end openStackThanks in advance!
-Sean
