Link to home
Start Free TrialLog in
Avatar of Tel
Tel

asked on

Problem with MySQL via dbExpress - get invalid username/password after doing queries

Hi

Does anyone know why the MaxStmtsPerConn in the TSQLConnection component always gets set to 1 when using mysql (v4) and dbexpress?  

Everytime i create a query a new connection is opened, i thought this could support loads of queries?

This is causing me no end of grief as i soon run out of connections!
Avatar of jconde
jconde

Are you using the default mysql driver for this ?  If that's the case, the mysql driver shipped with Delphi 7 was designed around 3.23 and a lot of the mysql internals have changed since then.

I assume you're using the 3.23 client libraries to connect to 4.0 that that sooner or later will cause conflicts.  I suggest you downgrade your server to the latest 3.23 and I'm sure your problems will be fixed.

If downgrading is not an option, look for an alternative method for connecting to mysql other than dbexpress.
Avatar of Tel

ASKER

problem is the same is 3.23 and 4.0 - as i have said in my other question (on the mysql page) it is the way dbExpress is working.

I have seen on the net another company that produces dbExpress - do you know if their driver is any better?
ASKER CERTIFIED SOLUTION
Avatar of jconde
jconde

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial