Solved

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

Posted on 2003-11-17
3
564 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now