For Me.Rao maria_Connect

Post Reply
User avatar
Maurizio
Posts: 826
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

For Me.Rao maria_Connect

Post by Maurizio »

Hello Mr. Rao,
I hope this message finds you well.
I am currently encountering an issue with maria_Connect when attempting to establish a connection to a MySQL 8.0.39 server, which has the default caching_sha2_password authentication plugin enabled. Given that the mysql_native_password plugin will be deprecated starting with MySQL 8.4, I have updated the MySQL connector to version 8.0. While the ADO connection is functioning properly, maria_Connect is not connecting with the FWH DLLs.
Could you please assist me in resolving this issue?
Thank you for your time and support.
Best regards,
Maurizio
www.nipeservice.com
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: For Me.Rao maria_Connect

Post by nageswaragunupudi »

We will check this and get back soon.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: For Me.Rao maria_Connect

Post by nageswaragunupudi »

I have updated the MySQL connector to version 8.0.
One of our FWH demo servers is of Version 8.0.29.
This is connecting without any problem.

Please copy this program to fwh\samples folder and build and run with buildh.bat or buildx.bat

Code: Select all | Expand

#include "fivewin.ch"

function Main()

   local oCn

   oCn   := MsgRun( "Connecting", "MYSQL", ;
            { || maria_Connect( "209.250.245.152,fwh,fwhuser,FiveTech@2022", .t. ) } )

   if oCn == nil
      ? "Not connected"
   else
      ? oCn:cServerInfo  // --> "8.0.29-0"
      ? oCn:authentication_policy
      oCn:Close()
   endif

return nil
So, there should be no problem in connecting to a Server with version 8.0 with present DLLs in fwh\samples folder.
This test is with 8.0.29 but not with 8.0.39.

We will be working on "caching_sha2_password authentication" and get back to you soon.
Regards

G. N. Rao.
Hyderabad, India
User avatar
Maurizio
Posts: 826
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Re: For Me.Rao maria_Connect

Post by Maurizio »

Thanks Rao, I really appreciate your work.
I await your verification.

Maurizio
User avatar
Maurizio
Posts: 826
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Re: For Me.Rao maria_Connect

Post by Maurizio »

Hello Mr. Rao,

I would like to clarify that the issue arises specifically when the “caching_sha2_password” authentication plugin is activated on the server.
If I create a "weaker" user using the “mysql_native_password” authentication plugin, the connection works without issues.
However, the core problem remains: “maria_Connect” is currently not compatible with the “caching_sha2_password” plugin, which is MySQL's default starting from version 8.0.

Thank you again for your support.

Best regards Maurizio
User avatar
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 22 times
Been thanked: 2 times
Contact:

Re: For Me.Rao maria_Connect

Post by Otto »

Dear Maurizio,
Have you linked OpenSSL to handle the SHA-2 encryption?
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Maurizio
Posts: 826
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Re: For Me.Rao maria_Connect

Post by Maurizio »

Dear Otto,
Thanks for the advice.
I think the problem is in libmariadb.dll that needs to be updated with new versions of Mysql.
Is that so Rao?

Maurizio
Post Reply