Page 4 of 4

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

PostPosted: Sat Jun 20, 2020 2:27 pm
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.

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

PostPosted: Fri Nov 13, 2020 12:13 am
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  Expand view

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  Expand view

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?

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

PostPosted: Sat Nov 14, 2020 8:24 pm
by nageswaragunupudi
Please use maria_Connect() instead of mysql_Connect()

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

PostPosted: Mon Nov 16, 2020 2:08 pm
by leandro
Mr Rao, muchas gracias por responder.

Ahora me devuelve el siguiente error:

Code: Select all  Expand view

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,