List:General Discussion« Previous MessageNext Message »
From:Ed Carp Date:April 12 1999 5:31am
Subject:Re: Opening multiple MySQL connections in one program (with and without threads).
View as plain text  
Works for me under RH 5.2.  I'm running MySQL 3.22.21:

for i in 1 2 3 4 5
do
./xxx
done

BEHAVIOR 1: One connection, threaded.
Attempting to connect (threaded).
Connected in thread 1025.
BEHAVIOR 2: Two connections, one unthreaded, one
threaded.
Attempting to connect (unthreaded).
Connected (unthreaded).
Attempting to connect (threaded).
Connected in thread 1025.
BEHAVIOR 3: Two connections, unthreaded.
Attempting to connect (unthreaded).
Connected (unthreaded).
First done.
Attempting to connect (unthreaded).
Connected (unthreaded).
Second done.
BEHAVIOR 4: Two connections, threaded.
Attempting to connect (threaded).
Connected in thread 1025.
First done.
Attempting to connect (threaded).
Connected in thread 2049.
Second done.
BEHAVIOR 5: Two connections, forked.
Attempting to connect (unthreaded).
Attempting to connect (unthreaded).
Connected (unthreaded).
First done.
Connected (unthreaded).
Second done.
--
Ed Carp, N7EKG - erc@stripped - 9403672744@stripped for URGENT
messages only!
Web: http://www.pobox.com/~erc

"Truth is a pathless land, and you cannot approach it by any path
whatsoever, by any religion, by any sect. Truth, being limitless,
unconditioned, unapproachable by any path whatsoever, cannot be organized;
nor should any organisation be formed to lead or to coerce people along any
particular path."  --J. Krishnamurti


Thread
Opening multiple MySQL connections in one program (with and without threads).terry jones12 Apr
  • Re: Opening multiple MySQL connections in one program (with and without threads).Ed Carp12 Apr
  • Re: Opening multiple MySQL connections in one program (with and without threads).terry jones12 Apr
  • Re: Opening multiple MySQL connections in one program (with and without threads).Ed Carp12 Apr
  • Re: Opening multiple MySQL connections in one program (with and without threads).Ed Carp12 Apr
  • Re: Opening multiple MySQL connections in one program (with andwithout threads).Aldrian Gintingsuka12 Apr
  • Opening multiple MySQL connections in one program (with and without threads).Michael Widenius12 Apr
  • Opening multiple MySQL connections in one program (with and without threads).terry jones12 Apr
    • Re: Opening multiple MySQL connections in one program (with andwithout threads).Ilya Obshadko12 Apr
    • Re: Opening multiple MySQL connections in one program (with andwithout threads).terry jones12 Apr
      • Re: Opening multiple MySQL connections in one program (with andwithout threads).Ilya Obshadko12 Apr
      • Re: Opening multiple MySQL connections in one program (with andwithout threads).terry jones13 Apr
  • Re: Opening multiple MySQL connections in one program (with and without threads).Ed Carp13 Apr
  • Re: Opening multiple MySQL connections in one program (with and without threads).terry jones14 Apr