FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ADO RDD connection error 16389
Posts: 117
Joined: Thu Mar 02, 2006 11:06 AM
ADO RDD connection error 16389
Posted: Sat Jun 30, 2007 11:16 AM
I have this error testing MS SQL and MySQL.

Is there a way to get more information of the error.

I have used this code with MySQL

#Include "FiveWin.Ch"
#include "adordd.ch"

REQUEST ADORDD

function TstMySql()

   USE test1 VIA "ADORDD" TABLE "tabel1" MYSQL ;
      FROM "LOCALHOST" USER "ROOT" PASSWORD ""

   Browse()

   USE

return nil


Any idea

Thanks,

Willy Hermans
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ADO RDD connection error 16389
Posted: Sun Jul 01, 2007 06:38 AM

Willy,

Try to connect to your database and table using an application like Navicat (www.navicat.com) and check if it works fine

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 117
Joined: Thu Mar 02, 2006 11:06 AM
ADO RDD connection error 16389
Posted: Sun Jul 01, 2007 08:10 AM

Thanks Antonio,

I'll try it asap.

The MySQL that I use is a version with PHP. It has already a management system.

Is it possible that not all versions (i.e. version 5) are supported

Thanks

Willy Hermans

Posts: 117
Joined: Thu Mar 02, 2006 11:06 AM
ADO RDD connection error 16389
Posted: Sun Jul 01, 2007 08:27 AM

I've just tested it with Navicat.

The connection works fine.

Greetings
Willy

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ADO RDD connection error 16389
Posted: Sun Jul 01, 2007 09:00 AM

Willy,

> TABLE "tabel1"

Isn't there a typo ? "table1" ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 117
Joined: Thu Mar 02, 2006 11:06 AM
ADO RDD connection error 16389
Posted: Sun Jul 01, 2007 09:19 AM

No tabel is just the dutch word for table

Greetings

Willy

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ADO RDD connection error 16389
Posted: Sun Jul 01, 2007 10:21 AM

ok :-)

Please try using "localhost" in lower case or 127.0.0.1

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 117
Joined: Thu Mar 02, 2006 11:06 AM
ADO RDD connection error 16389
Posted: Sun Jul 01, 2007 11:49 AM

After reinstalling MySQL and ODBC drivers the connection works

Thanks.

Willy

Posts: 117
Joined: Thu Mar 02, 2006 11:06 AM
ADO RDD connection error 16389
Posted: Sun Jul 01, 2007 02:59 PM

Now I've tried to connect from another pc.

This does still not work.

I've tried with the ip adres of the pc that holds the mysql server software.

I've tried with the networkname of the pc...

I've tried with "\pcname\localhost" and so on.

What are exacly the possibilities for adressing the connection.

Thanks,

Willy Hermans

MS-SQL works already from a network pc

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ADO RDD connection error 16389
Posted: Sun Jul 01, 2007 04:17 PM

Willy,

> What are exacly the possibilities for adressing the connection

We don't know it for sure. ADORDD is just a layer that uses ADO. If ADO works then the ADORDD should work too.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 117
Joined: Thu Mar 02, 2006 11:06 AM
ADO RDD connection error 16389
Posted: Mon Jul 02, 2007 09:57 AM

Thanks Fernando,

I've done some tests.

There seems to be something wrong with the MySQL server.

I have reinstalled the server several times.

When I use EasyPhp 1.7 or 1.8 (This includes MySQL 5) the program works local but the server is not detected at another PC in the network.

I have used navicat and MySQL Administrator.

Maybe the MySQL server is automatically installed as a local server.
I can not find a setting to change that.

When I do'nt use EasyPHP but the usual MySQL 5 the program does not work on any pc. In that case I have a connection error but the server is detected on other pc's.

I think I have to search a forum for MySQL beginners.

Someone any idea ?

Thanks.

Willy.

Posts: 117
Joined: Thu Mar 02, 2006 11:06 AM
ADO RDD connection error 16389
Posted: Mon Jul 02, 2007 02:48 PM
I have just finished some tests.

1) Format C
2) Reinstall XP service pack 2
3) disable firewall
4) Install MySQL 5

run this code

#Include "FiveWin.Ch"

#include "adordd.ch"

REQUEST ADORDD

function TstMySql()

   USE test VIA "ADORDD" TABLE "tabel1" MYSQL ;
      FROM "localhost" USER "root" password "ikke"

*  USE test00 VIA "ADORDD" TABLE "ACCOUNTS" MYSQL ;
*     FROM "www.freesql.org" USER "myuser" PASSWORD "mypass"

   Browse()

   USE

return nil


This works fine on the pc were MySQL is installed. It does not work on any other pc.

So I changed "localhost" into "192.168.0.101" and "testpc" and "TESTPC"

This did not work on any pc. But the error is different
Now it is not a ADODB/Connection error but it is a
ADODB Recordset error.

With Navicat it was easy to open as "testpc" , "TESTPC" , "192.168.0.101"

Is it possible that this is not yet supported in ADORDD

Thanks,

Willy Hermans[/code]
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ADO RDD connection error 16389
Posted: Mon Jul 02, 2007 04:59 PM

Willy,

Please show us your code using "testpc"

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 117
Joined: Thu Mar 02, 2006 11:06 AM
ADO RDD connection error 16389
Posted: Mon Jul 02, 2007 05:11 PM
Hello Antonio,

Here it is.


#include "adordd.ch"

REQUEST ADORDD

function TstMySql()

   USE test VIA "ADORDD" TABLE "tabel1" MYSQL ;
      FROM "testpc" USER "root" password "pas"

*  USE test00 VIA "ADORDD" TABLE "ACCOUNTS" MYSQL ;
*      FROM "www.freesql.org" USER "myuser" PASSWORD "mypass"

   Browse()

   USE

return nil


Greetings

Willy Hermans

Continue the discussion