[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: mariadb TLS/SSL error


I used .Options["SSL_MODE"] = "disabled" before making the connection.

But it doesn't change anything on the mariadb error.

I'm not used reading c sources, so I don't know how to check the possible values.


I installed the environment variable in my environment, tested:

echo $GB_DB_MYSQL_NOSSL
1

This doesn't change the connection error from the gambas3 program. 
(Also keeps the error on the commandline interface manual login on mariadb).



Wim



-----Oorspronkelijk bericht-----
> Afzender: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
> Verstuurd: Vrijdag 26 September 2025 13:29
> Aan: user@xxxxxxxxxxxxxxxxxxxxxx
> Onderwerp: Re: mariadb TLS/SSL error
> 
> Le 26/09/2025 à 13:27, Benoît Minisini a écrit :
> > Le 26/09/2025 à 13:21, Benoît Minisini a écrit :
> >>
> >> You can set the 'GB_DB_MYSQL_NOSSL' environment variable to "1" to 
> >> disable SSL. But not all versions of MySQL/MariaDB support disabling 
> >> SSL (you will get a warning message).
> >> This environment variable must be set before opening the connection of
> 
> >> course.
> >>
> >> Regards,
> >>
> > 
> > Otherwise the 'Connection.Options' property allows to specify a lot of 
> > MySQL/MariaDB connection options.
> > 
> > You must look into the 'gb.db.mysql/src/options.h' Gambas source code 
> > file to see all supported options.
> > 
> > Regards,
> > 
> 
> For example:
> 
> MyConnection.Options["SSL_MODE"] = "disabled"
> 
> will give you the same effect as setting the environment variable.
> 
> Regards,
> 
> -- 
> Benoît Minisini.
> 
> 
> 
> 


Follow-Ups:
Re: AW: mariadb TLS/SSL errorBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>