For Me.Rao maria_Connect

For Me.Rao maria_Connect

Postby Maurizio » Fri Aug 09, 2024 1:58 pm

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
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Re: For Me.Rao maria_Connect

Postby nageswaragunupudi » Sat Aug 10, 2024 11:37 am

We will check this and get back soon.
Regards

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

Re: For Me.Rao maria_Connect

Postby nageswaragunupudi » Sun Aug 11, 2024 4:05 am

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 view
#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
nageswaragunupudi
 
Posts: 10641
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: For Me.Rao maria_Connect

Postby Maurizio » Mon Aug 12, 2024 8:17 am

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

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

Re: For Me.Rao maria_Connect

Postby Maurizio » Mon Aug 26, 2024 9:54 am

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
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Re: For Me.Rao maria_Connect

Postby Otto » Fri Aug 30, 2024 7:48 am

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
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: For Me.Rao maria_Connect

Postby Maurizio » Thu Sep 05, 2024 9:13 am

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
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 64 guests