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

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

Postby MOISES » Sat Jun 20, 2020 2:27 pm

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
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

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

Postby leandro » Fri Nov 13, 2020 12:13 am

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?
Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Embarcadero C++ 7.60 for Win32 ] [ FiveWin 23.07 ] [ xHarbour 1.3.0 Intl. (SimpLex) (Build 20230914) ]
User avatar
leandro
 
Posts: 1676
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia

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

Postby nageswaragunupudi » Sat Nov 14, 2020 8:24 pm

Please use maria_Connect() instead of mysql_Connect()
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10633
Joined: Sun Nov 19, 2006 5:22 am
Location: India

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

Postby leandro » Mon Nov 16, 2020 2:08 pm

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,
Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Embarcadero C++ 7.60 for Win32 ] [ FiveWin 23.07 ] [ xHarbour 1.3.0 Intl. (SimpLex) (Build 20230914) ]
User avatar
leandro
 
Posts: 1676
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 27 guests