FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour MySQL 8.4 error Authentication plugin 'sha256_password'... SSL encryption
Posts: 54
Joined: Sat Dec 10, 2016 08:58 PM
MySQL 8.4 error Authentication plugin 'sha256_password'... SSL encryption
Posted: Tue Jun 10, 2025 12:18 PM

Hola amigos

He necesitado probar mi software con MySQL 8.4 en el servidor (hasta ahora he usado MySQL 5.7), y con 8 encuentro este error:

2061

Authentication plugin 'sha256_password' reported error:

Authentication requires SSL encryption

Se puede modificar el servidor y activar el método antiguo para poder acceder, pero quizás eso sea inseguro o se descontinúe y entonces ya no servirá; además, siempre es mejor seguir las reglas.

Quedo atento a cualquier ayuda.

Gracias!!

José Concha Leiva - Chile
"Querer, saber y hacer, es poder"
HB MSVSC + FWH 24.04 + MySQL/MaríaDB/DBFCDX (64 bits)
https://zenitx.com
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: MySQL 8.4 error Authentication plugin 'sha256_password'... SSL encryption
Posted: Tue Jun 10, 2025 03:36 PM
Como estás haciendo? Asi?
ALTER USER 'username'@'hostname' IDENTIFIED WITH caching_sha2_password BY 'password'

mysql -u your_user -p --server-public-key-path=/path/to/public_key.pem

SHOW STATUS LIKE 'Rsa_public_key'
https://stackoverflow.com/questions/49194719/authentication-plugin-caching-sha2-password-cannot-be-loaded

https://github.com/docker-library/mysql/issues/454

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: MySQL 8.4 error Authentication plugin 'sha256_password'... SSL encryption
Posted: Wed Jun 11, 2025 12:01 AM

Hi Jose,

FWHMySql doesn't work with MySQL SSL Connections. Mr Rao was doing tests with this, but unhappiness, he couldn't finish this work.

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: MySQL 8.4 error Authentication plugin 'sha256_password'... SSL encryption
Posted: Wed Jun 11, 2025 05:30 AM

Hello Villian,

in which source file can the functions and methods for FWHMySql be found?

Best regards,

Otto

Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: MySQL 8.4 error Authentication plugin 'sha256_password'... SSL encryption
Posted: Wed Jun 11, 2025 10:39 AM

Hi Otto,

I believe they are in FWMARIA.PRG.

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: MySQL 8.4 error Authentication plugin 'sha256_password'... SSL encryption
Posted: Wed Jun 11, 2025 06:59 PM
Prueba poniendo esta DLL junto al EXE
https://github.com/cristobalnavarro/Test_FivEdit/blob/master/libmysql_.dll
( renombrala a libmysql.dll, evidentemente )
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces

Continue the discussion