FWH 17.03 : Using FWMARIADB for Embedded Server

User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Re: FWH 17.03 : Using FWMARIADB for Embedded Server

Post by fraxzi »

Hi All,

I successfully run sample 'mysqlmbd.prg', it created data on a folder I specify..
but on the line...

Code: Select all

   REQUEST DBFCDX
   ...
   oCn:importfromdbf( "customer.dbf" )   // <<= it quits here
   ...
 
It quits with no logs or nothing to trace...

:?:
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
MarioG
Posts: 1356
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Re: FWH 17.03 : Using FWMARIADB for Embedded Server

Post by MarioG »

[quote="nageswaragunupudi"]It is now possible to use FWMariaDB to create and use MYSQL embedded server from version FWH 17.03, using libmysqld.dll instead of libmariadb.dll (or libmysql.dll). This Possible only with 32 bit Borland and MSVC Harbour / xHarbour. Not possible with 64 bit compliers.

Usage:

1) Download libmysqld.dll
2) Build implib libmysqld.lib for borland or msvc compiler as required.
3) Link the application with this implib instead of libmariadb.dll (or libmysql.lib)
4) Locate or create a folder containing "errmsg.sys" file for the language required. (cLangFolder)
5) Creae a folder for creation of the embedded server.(cDataFolder)
6) Use the same command for connection, specifying cDatFolder (with trailing backslash) as HOST and cLangFolder as LANGFOLDER. Important: cDataFolder should contain trailing backslash.

Hello;
I download de last version of Mariadb Server, 10.5.3
When I launch:
D:\Bat>implib libmariadb.lib libmariadb.dll
Return that error:
Embarcadero Implib Version 3.3.0 Copyright (c) 1991-2014 Embarcadero Technologies, Inc.
Error libmariadb.dll: unknown file type

My BCC is: Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc. and;
my implib is: Embarcadero Implib Version 3.3.0 Copyright (c) 1991-2014 Embarcadero Technologies, Inc.
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: FWH 17.03 : Using FWMARIADB for Embedded Server

Post by nageswaragunupudi »

You posted this under the topic Embedded server.

For using embedded server,

1. You do not have to install MySql server or MariaLib server
2. What all you need is "libmysqld.dll"
3. We do not get this dll along with either Mysql server / MariaLib server installations. We need to download it separately.

In case you are not talking about Ebedded server, but normal Mariadb server,
D:\Bat>implib libmariadb.lib libmariadb.dll
Return that error:
Embarcadero Implib Version 3.3.0 Copyright (c) 1991-2014 Embarcadero Technologies, Inc.
Error libmariadb.dll: unknown file type
It is likely that the dll is 64-bit, not 32-bit.

Instead you may use the dll and lib that come with fwh
\fwh\dll\libmariadb.dll
\fwh\lib\libmariadb.lib
Regards

G. N. Rao.
Hyderabad, India
User avatar
MarioG
Posts: 1356
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Re: FWH 17.03 : Using FWMARIADB for Embedded Server

Post by MarioG »

Mr Rao
many thanks
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
Post Reply