RE: Thread safe queries with multiple connections

2009-06-07 Thread Martin Gainty
mg>hopefully quick comments > Date: Sun, 7 Jun 2009 04:41:20 -0600 > Subject: Thread safe queries with multiple connections > From: buf...@biffco.net > To: mysql@lists.mysql.com > > I think my question is whether the data in MYSQL_RES and MYSQL_ROW data > structures are

Thread safe queries with multiple connections

2009-06-07 Thread buford
I think my question is whether the data in MYSQL_RES and MYSQL_ROW data structures are sufficiently independent from that of other instances of those data structures in a multi-threaded situation when a pool of connections are share. The application my have multiple connections structures defined

Re: Temp table on multiple connections

2008-06-08 Thread Omni Adams
On Fri, Jun 6, 2008 at 9:25 PM, TUT - LightSpeed <[EMAIL PROTECTED]> wrote: > > Actually they are 2 connection to 2 different databases on 2 different > hosts. > I wanted rquery results from db1 to be in a temporary table to be used in > db2. > I can go around it with some php code to create the t

Re: Temp table on multiple connections

2008-06-06 Thread TUT - LightSpeed
de to create the table in db2 but thought it could be easier just to use the temporary table created by the query on db1. Thanks -- From: "Omni Adams" <[EMAIL PROTECTED]> Sent: Friday, June 06, 2008 7:32 PM To: Subject: Re: T

Re: Temp table on multiple connections

2008-06-06 Thread Omni Adams
On Fri, Jun 6, 2008 at 2:28 PM, TUT - LightSpeed <[EMAIL PROTECTED]> wrote: > I have this problem > > I connect to 2 database servers in the same script > > If I create a temp table on one, won't be able on the other > > $db1 = db_connect1(); > $db2 = db_connect2(); > > I get error that temp_table

Temp table on multiple connections

2008-06-06 Thread TUT - LightSpeed
I have this problem I connect to 2 database servers in the same script If I create a temp table on one, won't be able on the other $db1 = db_connect1(); $db2 = db_connect2(); $query = "CREATE TEMPORARY TABLE temp_table SELECT .."; $result = mysql_query($query,$db1) or die(mysql_err

Multiple connections not happenning

2007-07-24 Thread Jean-Sebastien Pilon
Hello, I run a PHP/MySQL environment. This may be more of a PHP question, but I'll take my chance here. I have 3 different servers: - 1 running apache2 + php4 - 1 running mysql 5.0 - 1 running mysql 4.1 On the web server, I run multiple php applications which all connect to the MySQL databa

RE: Possible to DoS a slave by using multiple connections on the master!.

2005-06-22 Thread Dathan Pattishall
uent sorts. DVP Dathan Vance Pattishall http://www.friendster.com > -Original Message- > From: Kevin Burton [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 21, 2005 6:01 PM > To: mysql@lists.mysql.com; [EMAIL PROTECTED] > Subject: Possible to DoS

Possible to DoS a slave by using multiple connections on the master!.

2005-06-21 Thread Kevin Burton
Not sure if this is a known issue or not.. but I haven't seen it documented anywhere. Anyway. My past thinking was that you should always use as many connections as you have tables (at least with myisam). This way in the worst case scenario you could have locks open on all tables instead of

Re: Multiple Connections

2004-08-10 Thread Egor Egorov
on't really open a new connection when requested but instead return the previous open handle. This is how mysql_pconnect in PHP and connect_cached in DBI works. > -Original Message- > From: Egor Egorov [mailto:[EMAIL PROTECTED] > Sent: Monday, August 09, 2004 12:13 PM > To: [E

RE: Multiple Connections

2004-08-09 Thread Paul McNeil
So this means that my DB driver is somehow using the same connection when I ask it to create 2 different ones? -Original Message- From: Egor Egorov [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 12:13 PM To: [EMAIL PROTECTED] Subject: Re: Multiple Connections "Paul M

Re: Multiple Connections

2004-08-09 Thread Egor Egorov
"Paul McNeil" <[EMAIL PROTECTED]> wrote: > This tells me that the DB is treating my connections as the same connection. > I need to know if the problem is that MySQL is caching and reusing any > connection from my client OR if the problem is with my driver. For each connection a new thread is cre

Multiple Connections

2004-08-09 Thread Paul McNeil
Good morning to all. I am using the mySQL connector to connect to the mySQL database. My question concerns the session between the DB and the client. How is the session maintained? In other words, how does the DB know that it is communicating with my specific connection? Here is why I ask. In

Re: Consistency among multiple connections

2004-07-19 Thread Egor Egorov
Sergio Ilarri <[EMAIL PROTECTED]> wrote: > P.S. I also get sometimes an error: General error, message from server: > "Can't lock file (errno: 116)". ...which is: [EMAIL PROTECTED] egor]$ perror 116 Error code 116: Stale NFS file handle See the end of .err files in datadir of your servers, the

Consistency among multiple connections

2004-07-16 Thread Sergio Ilarri
Hi everybody, I have the following scenario. Several computers with shared disk in a LAN. Each of these computer has a MySQL server that serves several databases. I have several clients that communicate with a Java process that I have in each computer to answer queries for a given database (it co

Reuse MYSQL object instead of multiple connections?

2002-11-20 Thread Anna Fowles-Winkler
Hi, Currently, my program creates a new MYSQL object each time a connection is needed to save or load information from my MySQL database. Sometimes, this connection is created 10,000 or more times during one use of the program. I'm wondering if I reuse the connection (have a static MYSQL attr

Multiple connections BUG!!

2002-03-18 Thread mahalakshmi
Hi all, How can we set multiple connections for multiple users in mySQL. I'm accessing MYSQL using MYSQL++ library. This code is in the middle tier, which can be accessed by any number of users. Its working fine for 3 clients, when connecting for the next it is giviing problems. Please he

Multiple connections with the C API

2001-05-07 Thread Mike Baranski
I seem to be having a problem on linux with the mysql c api hanging sometimes when I try to make 2 connections in a threaded program, with p threads. It's redhat 7 box, and it is an intermittient problem. Sometimes it works great, and sometimes it hangs on the second connection. Anyone know

Re: MySQL C API multiple connections

2001-01-13 Thread Sinisa Milivojevic
alex writes: > > > > By the way it seems to me that in 3.23.XX series mysql_init() returns address not > of the starting point of the allocated memory pool but a point somewhere further > (like to provide hidden data not included in "official" MYSQL structure). Hence > when trying to use

Re: MySQL C API multiple connections

2001-01-12 Thread alex
Sinisa Milivojevic wrote: > > Hi! > > I made an error in my previous message. All three instances should be > like this: > > connX = mysql_init(NULL); > if (!mysql_real_connect(connX, ip2, user2, pass2, db2, 0, NULL, 0)) > error . > By the way it seems to me that in 3.23.XX series mys

Re: MySQL C API multiple connections

2001-01-12 Thread Sinisa Milivojevic
Valerio Ferrucci writes: > John Dean wrote: > > > Hi > > I think you should check the API documentation > > Can you point me to some docs about this? > > > because you code example is > > wrong. Each connection should have its own initialized connection handle. > > You have only initi

Re: MySQL C API multiple connections

2001-01-12 Thread Sinisa Milivojevic
Valerio Ferrucci writes: > Hi, > I'm building a MySQL C API client. I need to connect to different dbs > at the same time. My code is (approximately): > > // > MYSQL mysql, *conn1, *conn2; > > mysql_init(&mysql) > > conn1 = mysql_real_connect(&mysq, ip1, u

RE: MySQL C API multiple connections

2001-01-12 Thread Narvaez, Teresa
erio Ferrucci [SMTP:[EMAIL PROTECTED]] > Sent: Friday, January 12, 2001 8:32 AM > To: [EMAIL PROTECTED] > Subject: MySQL C API multiple connections > > Hi, > I'm building a MySQL C API client. I need to connect to different dbs > at the same time. My code is (app

Re: MySQL C API multiple connections

2001-01-12 Thread Valerio Ferrucci
John Dean wrote: > Hi > I think you should check the API documentation Can you point me to some docs about this? > because you code example is > wrong. Each connection should have its own initialized connection handle. > You have only initialized one data structure i.e. mysql, which is passed >

MySQL C API multiple connections

2001-01-12 Thread Valerio Ferrucci
Hi, I'm building a MySQL C API client. I need to connect to different dbs at the same time. My code is (approximately): // MYSQL mysql, *conn1, *conn2; mysql_init(&mysql) conn1 = mysql_real_connect(&mysq, ip1, user1, pass1, db1, 0, NULL, 0) printf("conn1 = %d", con

MySQL CAPI and Multiple connections

2001-01-12 Thread Valerio Ferrucci
Hi, I'm building a C API MySQL client. I need to connect to different dbs at the same time. My code is (approximately): // MYSQL mysql, *conn1, *conn2; mysql_init(&mysql) conn1 = mysql_real_connect(&mysq, ip1, user1, pass1, db1, 0, NULL, 0) printf("conn1 = %d", con