If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > error 2003 cant connect to mysql server

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-18-09, 23:02
g0d5_g1ft g0d5_g1ft is offline
Registered User
 
Join Date: Feb 2009
Posts: 2
error 2003 cant connect to mysql server

I'm getting this error sometime after a couple of transactions have been executed. I have a loop and inside that loop I have a select statement and an insert statement that will run based on the result of the select. Problem is I get the error sometime after a couple of transactions have been executed so I know Im getting connected to the database. It's like the server grew tired and decided to not accept my connection.

After I get the error I stop for about a minute and try to run the thing again and it'll run just fine until mysql decides it wouldnt accept my connection.

any ideas guys?? thanks

Mike from Manila
Reply With Quote
  #2 (permalink)  
Old 02-20-09, 13:17
alexsqlforums alexsqlforums is offline
Registered User
 
Join Date: Jan 2009
Location: NYC
Posts: 11
Are you properly setting transactions?
uncomment #log_warnings in your my.cnf for further investigation and check max_connections

better yet can you post your code here?
Reply With Quote
  #3 (permalink)  
Old 02-24-09, 03:47
g0d5_g1ft g0d5_g1ft is offline
Registered User
 
Join Date: Feb 2009
Posts: 2
hi alex

max connections is currently set to 1000

its a simple loop really that is now pure
"insert ignore ...." of about <500k records.

cant really post the exact code coz its a rather company sensitive data.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On