Solved

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

Posted on 2003-11-17
3
574 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

707 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