FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour FWCONNECT no conecta
Posts: 117
Joined: Sun Oct 08, 2017 12:51 PM
FWCONNECT no conecta
Posted: Sat Sep 19, 2020 10:21 PM
  • Estoy tratando de conectarme a un hosting real que con fivedbu lo puedo hacer.
  • compilo el programa sin ning煤n error.
  • lo ejecuto y cuando quiero conectarme se sale del programa.
  • uso fwh 17.09

local oCn, oRs, cPassword, cServerName, cDatabaseName, cUserName

cServerName := "mi-paginaweb.com.ar"
cDatabaseName := "pedrolavallen"
cUserName := "uv_pedrol"
cPassword := "sanluis"

FWCONNECT oCn HOST cServername USER cUsername PASSWORD cPassword DB cDatabasename
if oCn == nil
? "Connect Fail"
return nil
else
XBROWSER oCn:lecturas // lecturas es una tabla
oCn:Close()
endif

驴 Y la funci贸n MYSQL_CONNECT(), donde la encuentro ?

Muchas gracias !!!

Pedro L. Lavallen

San Luis (Capital), Argentina
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: FWCONNECT no conecta
Posted: Sun Sep 20, 2020 09:58 AM
cServerName := "mi-paginaweb.com.ar"
cDatabaseName := "pedrolavallen"
cUserName := "uv_pedrol"
cPassword := "sanluis"


Are these the real values?
If so we can not connect with FiveDBU also, either with ADO or MySql library.
The error is that the server "mi-paginaweb.com.ar" is not available.

If it is possible to connect with FiveDbu, FWCONNECT also works.

Why are you looking for the function MYSQL_CONNECT() ?
Regards



G. N. Rao.

Hyderabad, India
Posts: 117
Joined: Sun Oct 08, 2017 12:51 PM
Re: FWCONNECT no conecta
Posted: Sun Sep 20, 2020 03:59 PM

Hola Mr.Rao, mucho gusto!

No, los valores de la conexi贸n NO son reales.
Pero, los valores reales los he probado con el FIVEDBU y funcionan. Abre la base de datos y las tablas.

Lo que hice, es escribir un programa que toma parte del c贸digo del mismo FIVEDBU para ver si pod铆a abrir la conexi贸n, y no lo pude lograr.
No solamente que no pude, tampoco NO me dio ning煤n mensaje de error de conexi贸n, NI de conexi贸n exitosa, sino que hasta me sac贸 del programa.

La pregunta del mysql_connect() es sobre otra prueba que hice para ver si pod铆a conectarme.
Pero si con la primer forma funciona entonces utilizar茅 la primera.

Estoy empezando con el tema de las conexiones web y me cuesta mucho...

Muy amable Mr. Rao y gracias por su deferencia. !
Pedro.

TRADUCCION DE GOOGLE

Hello Mr. Rao, nice to meet you!

NO, the connection values are NOT real.
But, the real values I have tested with the FIVEDBU and they work. Open the database and tables.
What I did is write a program that takes part of the code from FIVEDBU itself to see if it could open the connection, and I couldn't do it.
Not only that I could not, nor did it give me any connection error messages, or successful connection, but it even took me out of the program.

The mysql_connect () question is about another test I did to see if I could connect.
But if the first way works then I'll use the first one.
I am starting with the topic of web connections and it costs me a lot ...

Very kind Mr. Rao and thanks for your deference. !
Pedro.

Pedro L. Lavallen

San Luis (Capital), Argentina

Continue the discussion