PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Re: Connecting to a Remote MYSQL database?
Re: Connecting to a Remote MYSQL database?
Iniciado por ale_aragao, 30,ene. 2004 19:03 - No hay respuesta
Publicado el 30,enero 2004 - 19:03
Thanks King
I will try, but I believe that will work...
thanks again
Try the following to see whether it works or not:
nCnx is int
sReq is string = "Init"
sUser is string = ""
sPassword is string = ""
sDriver is string = "mySql"
sDataSource is string
sDatabase is string = "test" // change this if needed
sDataSource = "localhost" // just change it into an IPAddress e.g. " 64.168.1.2"
nCnx=sqlConnect(sDataSource, sUser, sPassword, sDatabase, sDriver)
if nCnx > 0 Then
info("Connected...")
Else
info("Not Connected...")
End
SqlClose(sReq)
sqlDisconnect()
//Assumption, you must have some sort of IIS being ON or ping the IPAdress
//first from another machine on the net before executing the above
Thanks,
Regs,
King

HOw can I do that? Connect to a remote database, in internet for an example.
thanks