MariaDB

HMG en Español

Moderator: Rathinagiri

Post Reply
jorge.posadas
Posts: 174
Joined: Mon May 19, 2014 7:43 pm
DBs Used: DBF, SQLite, MS-SQL, ACCESS, MariaDB (en proceso)
Location: Morelia, Mich. México
Contact:

MariaDB

Post by jorge.posadas »

Grupo

¿Alguien sabe CÓMO saber qué versión de MariaDB tengo instalado ? y que esa lo pueda leer desde mi aplicación

De antemano gracias por la ayuda.
Cordialmente

POSADAS SOFTWARE
Jorge Posadas Ch.
Programador independiente
Morelia, Mich.
M é x i c o .
Movil +52 44 3734 1858
SKYPE: jorge.posadasch
Email: posoft@gmx.com
User avatar
dragancesu
Posts: 921
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: MariaDB

Post by dragancesu »

Newer versions in the installation have HeidiSQL, a great database management program, there you will see which version of the database you are connected to
if not, search and download, it's free
User avatar
dragancesu
Posts: 921
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: MariaDB

Post by dragancesu »

jorge.posadas
Posts: 174
Joined: Mon May 19, 2014 7:43 pm
DBs Used: DBF, SQLite, MS-SQL, ACCESS, MariaDB (en proceso)
Location: Morelia, Mich. México
Contact:

Re: MariaDB

Post by jorge.posadas »

Grupo

Gracias ya supe como ver la versión de MariaBD que tengo instalada
Cordialmente

POSADAS SOFTWARE
Jorge Posadas Ch.
Programador independiente
Morelia, Mich.
M é x i c o .
Movil +52 44 3734 1858
SKYPE: jorge.posadasch
Email: posoft@gmx.com
User avatar
Ismach
Posts: 161
Joined: Wed Nov 28, 2012 5:55 pm
DBs Used: DBF, mySQL, Mariadb, postgreSQL, Oracle, Db2, Interbase, Firebird, and SQLite
Location: Buenos Aires - Argentina

Re: MariaDB

Post by Ismach »

ir al directorio donde tenes instalado en modo console y ejecutar el comando: mysql --version

Code: Select all

Microsoft Windows [Versión 10.0.19042.1052]
(c) Microsoft Corporation. Todos los derechos reservados.

C:\Mariadb10\bin>
C:\Mariadb10\bin>mysql --version
mysql  Ver 15.1 Distrib 10.5.9-MariaDB, for Win64 (AMD64), source revision 3a8ca9096ea82ca61811450775511533d6cb1bb4

C:\Mariadb10\bin>
jorge.posadas
Posts: 174
Joined: Mon May 19, 2014 7:43 pm
DBs Used: DBF, SQLite, MS-SQL, ACCESS, MariaDB (en proceso)
Location: Morelia, Mich. México
Contact:

Re: MariaDB

Post by jorge.posadas »

Gracias Ismach,
Cordialmente

POSADAS SOFTWARE
Jorge Posadas Ch.
Programador independiente
Morelia, Mich.
M é x i c o .
Movil +52 44 3734 1858
SKYPE: jorge.posadasch
Email: posoft@gmx.com
User avatar
Claudio Ricardo
Posts: 367
Joined: Tue Oct 27, 2020 3:38 am
DBs Used: DBF, MySQL, MariaDB
Location: Bs. As. - Argentina

Re: MariaDB

Post by Claudio Ricardo »

Hola...
Cuando envio el query "SELECT VERSION();" la funcion que utilizo espera recibir un array pero como en este caso es un string lo considera error y me devuelve Nil...
Como hago para recibir ese string o el resultado de cualquier otra funcion de SQL (en este caso MariaDB) ?
Desde ya muchas gracias !
Translate Google:
Hi...
When I send the query "SELECT VERSION ();" The function I use expects to receive an array but as in this case it is a string, it considers it an error and returns Nil ...
How do I get that string or the result of any other SQL function (in this case MariaDB)?
Thanks in advance !
Corrige al sabio y lo harás más sabio, Corrige al necio y lo harás tu enemigo.
WhatsApp / Telegram: +54 911-63016162
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: MariaDB

Post by Rathinagiri »

Can I know which library you are using to connect to Maria DB from HMG?

If you use HMGMYSQL Library, the following code is perfectly running for me.

Code: Select all

aTable := sql( oDB, 'SELECT VERSION ()')
if hmg_len( aTable ) > 0
   msginfo( aTable[ 1, 1 ] )
endif 
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Claudio Ricardo
Posts: 367
Joined: Tue Oct 27, 2020 3:38 am
DBs Used: DBF, MySQL, MariaDB
Location: Bs. As. - Argentina

Re: MariaDB

Post by Claudio Ricardo »

Hi Rathinagiri... I use libmysql.dll with one lib similar to HFCL SQL i copy from Daniel Crocciari (Many Thanks to him)
i have the same code, but my error is that it did not decode the db password, encoded a few lines above, so it returned empty :oops:
i move the encode a few lines below, and work fine now ! Thank you Mr. Dyamond for your fast answer !!!
Corrige al sabio y lo harás más sabio, Corrige al necio y lo harás tu enemigo.
WhatsApp / Telegram: +54 911-63016162
Post Reply