FWH 16.06: MariaDb/MySql Backup and Restore (Updated 16.08)

MOISES
Posts: 824
Joined: Wed Aug 22, 2007 10:09 am

Re: FWH 16.06: MariaDb/MySql Backup and Restore (Updated 16.08)

Post by MOISES »

Yes, in case of network use or a transaction.

The ideal is that Ado funcion would work with MySql, mssql, acess, etc as the rest of your great ado funcions.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
User avatar
leandro
Posts: 958
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia
Contact:

Re: FWH 16.06: MariaDb/MySql Backup and Restore (Updated 16.08)

Post by leandro »

Buenas noches para todos

Estoy tratando de implementar la copia de seguridad con clase creada por nuestro amigo nages, de la siguiente manera:

Code: Select all

Function copiaseguridad()
Local oFWCon
cBackupFile := "c:\dlyma\copia.sql"
oFWCon := mysql_Connect(oCnEmp) // conectado con ADO
oFWCon:Backup( nil , cBackUpFile )
Return nil                                                                                                                                      
 
Pero al intentar compilar estoy recibiendo el siguiente error:

Code: Select all

Turbo Incremental Link 6.80 Copyright (c) 1997-2017 Embarcadero Technologies, Inc.
Error: Unresolved external '_HB_FUN_MYSQL_CONNECT' referenced from C:\FIVEDIT\R32_EMPR.OBJ
Error: Unable to perform link
Link Error 
 
Que librería me hace falta vincular?
Saludos
LEANDRO ALFONSO
SISTEMAS LYMA - BASE
Bogotá (Colombia)
[ FWH 19.09 ] [ xHarbour 1.2.3 Intl. (SimpLex) (Build 20190613) ] [ Embarcadero C++ 7.30 for Win32 ]
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: FWH 16.06: MariaDb/MySql Backup and Restore (Updated 16.08)

Post by nageswaragunupudi »

Please use maria_Connect() instead of mysql_Connect()
Regards

G. N. Rao.
Hyderabad, India
User avatar
leandro
Posts: 958
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia
Contact:

Re: FWH 16.06: MariaDb/MySql Backup and Restore (Updated 16.08)

Post by leandro »

Mr Rao, muchas gracias por responder.

Ahora me devuelve el siguiente error:

Code: Select all

Application
===========
   Path and name: C:\dlyma\dlyma.exe (32 bits)
   Size: 6,932,992 bytes
   Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20190613)
   FiveWin  version: FWH 19.09
   C compiler version: Borland/Embarcadero C++ 7.3 (32-bit)
   Windows version: 6.2, Build 9200 

   Time from start: 0 hours 0 mins 9 secs 
   Error occurred at: 16/11/2020, 08:58:21
   Error description: Error BASE/1004  Class: 'NIL' has no exported method: BACKUP
   Args:
     [   1] = U   
     [   2] = U   
     [   3] = C   c:\dlyma\copia.sql
 
Una pregunta, ¿Cual es el prg que contiene la clase mariadb? para revisar los metodos.

De antemano gracias,
Saludos
LEANDRO ALFONSO
SISTEMAS LYMA - BASE
Bogotá (Colombia)
[ FWH 19.09 ] [ xHarbour 1.2.3 Intl. (SimpLex) (Build 20190613) ] [ Embarcadero C++ 7.30 for Win32 ]
Post Reply