MYSQL Connections

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
Dooty
A semi-regular
A semi-regular
Posts: 24
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Tue Mar 26, 2013 11:10 am

MYSQL Connections

Post by Dooty »

how can i get more mysql connections. It says too many connections after a while.
User avatar
Edge100x
Founder
Founder
Posts: 13124
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: MYSQL Connections

Post by Edge100x »

You can set this in the my.cnf / my.conf file, but you should really fix your application that is leaking them, instead.
Dooty
A semi-regular
A semi-regular
Posts: 24
Joined: Tue Mar 26, 2013 11:10 am

Re: MYSQL Connections

Post by Dooty »

i fixed that by simply just removing the online/offline check. After like 12 hours, my game server will say too many connections.
Dooty
A semi-regular
A semi-regular
Posts: 24
Joined: Tue Mar 26, 2013 11:10 am

Re: MYSQL Connections

Post by Dooty »

where excatly are those 2 files located at
Dooty
A semi-regular
A semi-regular
Posts: 24
Joined: Tue Mar 26, 2013 11:10 am

Re: MYSQL Connections

Post by Dooty »

anyone?
Dooty
A semi-regular
A semi-regular
Posts: 24
Joined: Tue Mar 26, 2013 11:10 am

Re: MYSQL Connections

Post by Dooty »

Edge100x wrote:You can set this in the my.cnf / my.conf file, but you should really fix your application that is leaking them, instead.
Where is my.cnf / my.conf file located? I can't seem to find it in my Windows server
.=QUACK=.Major.Pain
This is my homepage
This is my homepage
Posts: 1573
Joined: Sun Jun 26, 2011 8:03 am

Re: MYSQL Connections

Post by .=QUACK=.Major.Pain »

I think they are in your mysql folders somewhere.
Visit gspreviews.com And Rate & Review Your Old & Current GSP's
Find Your GSP Coupons at gspreviews.com/coupons/
Dooty
A semi-regular
A semi-regular
Posts: 24
Joined: Tue Mar 26, 2013 11:10 am

Re: MYSQL Connections

Post by Dooty »

i found it in my.ini
putting max_connection = 10000 is correct right?
.=QUACK=.Major.Pain
This is my homepage
This is my homepage
Posts: 1573
Joined: Sun Jun 26, 2011 8:03 am

Re: MYSQL Connections

Post by .=QUACK=.Major.Pain »

That will allow more connections if increased, but would also increase the load.
Visit gspreviews.com And Rate & Review Your Old & Current GSP's
Find Your GSP Coupons at gspreviews.com/coupons/
Dooty
A semi-regular
A semi-regular
Posts: 24
Joined: Tue Mar 26, 2013 11:10 am

Re: MYSQL Connections

Post by Dooty »

whats the maxmium connection? cause i wanna put at max. more connections would mean i need more ram eventually correct?
User avatar
Edge100x
Founder
Founder
Posts: 13124
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: MYSQL Connections

Post by Edge100x »

You really need to fix your plugin/application instead of just changing this. Bumping up the limit will just delay the problem a bit, and you'll still run into it, if you're leaking connections.
Post Reply