Solved

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

Posted on 2003-11-17
3
571 Views
Last Modified: 2010-08-05
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!
0
Comment
Question by:Tel
  • 2
3 Comments
 
LVL 7

Expert Comment

by:jconde
ID: 9769518
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.
0
 
LVL 1

Author Comment

by:Tel
ID: 9778333
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?
0
 
LVL 7

Accepted Solution

by:
jconde earned 500 total points
ID: 9780684
I really couldn't tell ... I have never used it before :(

Look at what I posted in the mysql thread and if it sounds reasonable to you, then chances are you'll be OK for the time being.  If my suggestion doesn't work for you, then give ZeosDBO a try.  It should be pretty effortless to switch the DBX stuff for ZeosDBO.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question