TMyConnection and Read Only Accounts

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
scaupp
Posts: 7
Joined: Tue 12 Dec 2006 14:27

TMyConnection and Read Only Accounts

Post by scaupp » Wed 24 Sep 2008 14:04

Using MyDAC 2.0. When I try to connect to our mySQL server using one of our accounts that has read-only access to the DB, I get an error:

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

Works fine with the regular account, but not the read only one. It's important that we use the read-only account since this copy of the database is replicated and we want to avoid accidentally writing to the DB, breaking the replication.

Thank you.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 26 Sep 2008 15:29

We have fixed this problem in the current MyDAC version. You should upgrade to MyDAC 5 to solve the problem.

scaupp
Posts: 7
Joined: Tue 12 Dec 2006 14:27

Post by scaupp » Fri 26 Sep 2008 17:50

The upgrade is one option, fortunately I found a mySQL admin with his ducks in a row. You can simply do this command in mySQL:

set password for 'readonlyusername'@'%' =
OLD_PASSWORD('whateverthepasswordis');

And Bob's your uncle (and for free).

eduardosic
Posts: 387
Joined: Fri 18 Nov 2005 00:26
Location: Brazil

Post by eduardosic » Fri 26 Sep 2008 18:56

scaupp wrote:The upgrade is one option, fortunately I found a mySQL admin with his ducks in a row. You can simply do this command in mySQL:

set password for 'readonlyusername'@'%' =
OLD_PASSWORD('whateverthepasswordis');

And Bob's your uncle (and for free).
MyDAC 5 includes a lot of new and important features, compatibility with all mysql version and more..

Upgrade from version 2 to Version 5 is a Good idea.

Post Reply