Page 1 of 1

Error 1251 at runtime using native connection to MySql

Posted: Mon Jul 25, 2022 4:09 pm
by max
I have FWH 18.07, and works good from many years with connection to MS SQL server using 'fw_openadoconnect'.
Now (my first time) I am trying to connect to a mysql database (service mysql named 'MySql80') using native FWH connection 'fwconnect', with library libmysql.lib.
At runtime I get this error in a dialog, and the connection does not work:

1251
Client does not support authentication protocol requested by server; consider upgrading MySQL client

What does it mean? How con i solve?
Thank you.
Bye

Re: Error 1251 at runtime using native connection to MySql

Posted: Mon Jul 25, 2022 10:19 pm
by cmsoft
Si tienes acceso root al servidor MySql, puedes probar poniendo la password asi:

Code: Select all | Expand


ALTER USER 'myuser'@'%' IDENTIFIED WITH mysql_native_password BY 'my_password';
flush privileges;
 

Puedes mirar este link que habla del tema
https://stackoverflow.com/questions/50093144/mysql-8-0-client-does-not-support-authentication-protocol-requested-by-server

Re: Error 1251 at runtime using native connection to MySql

Posted: Tue Jul 26, 2022 7:14 am
by max
Ahora esta bien!
Gracias Cesar.
Saludos