Go Back   Linux Forums by TotalPenguin! Get linux Help! > Linux > Linux Web Server

Linux Web Server Web Server help and support (including cpanel, whm, plesk, etc.)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-12-2008, 12:57 PM
Senior Member
 
Join Date: Jan 2007
Posts: 133
Wanch is on a distinguished road
Default Increase connections to MySQL

I'm getting this error from MySQL:

Code:
Too many connections
How do I increase the connection limit via console or WHM?
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 05-12-2008, 06:07 PM
Super Moderator
 
Join Date: Dec 2007
Location: Denmark
Posts: 273
v0id is on a distinguished road
Send a message via MSN to v0id
Default

In MySQL version 3.x and 4.x you shall open the file called "/etc/my.cnf", and edit the variable/line saying something like "max_connections". The exact line is different from version to version, but see if you can find it.
Reply With Quote
  #3 (permalink)  
Old 05-13-2008, 02:27 PM
Senior Member
 
Join Date: Jan 2007
Posts: 133
Wanch is on a distinguished road
Default

Thanks, I added the line and restarted the service. Haven't gotten the error yet.
Reply With Quote
  #4 (permalink)  
Old 05-14-2008, 01:07 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 533
Jordan is on a distinguished road
Default

v0id is correct. By default it only allows 100 connections. Edit your /etc/my.cnf file and ADD:

Code:
[mysqld]
max_connections=500
Restart MySQL (in WHM) /etc/restartsrv_mysql OR execute SET GLOBAL max_connections = 500; in MySQL

More info: http://dev.mysql.com/doc/refman/5.0/...nnections.html
Reply With Quote
  #5 (permalink)  
Old 05-16-2008, 06:21 PM
Senior Member
 
Join Date: Jan 2007
Posts: 133
Wanch is on a distinguished road
Default

Thanks.
Reply With Quote

Sponsored Links
Reply

Tags
mysql connections

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Suggestion: Increase Width Justice M General/Lounge 3 04-03-2008 03:19 PM
MySQL Version Tor Linux Applications 9 02-22-2008 07:23 AM
MySQL Root Password Prog Linux Applications 1 10-08-2007 08:38 PM
.SQL into MySQL Lop Linux Applications 3 08-14-2007 07:01 PM


All times are GMT. The time now is 01:45 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.