Spiro
2007-12-20 10:54:34 UTC
I'm trying to get up and running xHarbour wiht Mediator for MySql, but
with no luck so far. The documentation on the OTC site is zero. When I
run their sample xHarbour connection, it works. My altered code (1 line
added) doesn't. I have only added this line
USE PRT
and get error SRV/1402 (PRT: no such table). The table exists in the
MySql database, Mediator is running, the connection works, but no PRT
table is recognized. Anyone played with Mediator and xHarbour to help me?
***********************************
* Minimal Clipper/Mediator program
#include "mediator.ch" && optional if not using Mediator macros
request medntx && mandatory
RDDSETDEFAULT("MEDNTX") && set default data source to MEDNTX RDD driver
&& OR
*RDDSETDEFAULT("MEDCDX") && set default data source to MEDCDX RDD driver
USE PRT
? "Connected to Mediator server"
* Any database operations coming here will operate on
* database server instead of DBF files!
WAIT
? "Disconnecting from Mediator - Bye"
with no luck so far. The documentation on the OTC site is zero. When I
run their sample xHarbour connection, it works. My altered code (1 line
added) doesn't. I have only added this line
USE PRT
and get error SRV/1402 (PRT: no such table). The table exists in the
MySql database, Mediator is running, the connection works, but no PRT
table is recognized. Anyone played with Mediator and xHarbour to help me?
***********************************
* Minimal Clipper/Mediator program
#include "mediator.ch" && optional if not using Mediator macros
request medntx && mandatory
RDDSETDEFAULT("MEDNTX") && set default data source to MEDNTX RDD driver
&& OR
*RDDSETDEFAULT("MEDCDX") && set default data source to MEDCDX RDD driver
USE PRT
? "Connected to Mediator server"
* Any database operations coming here will operate on
* database server instead of DBF files!
WAIT
? "Disconnecting from Mediator - Bye"