Home · News · Articles · Forum · Downloads · Search Your IP: 38.103.63.58 · Today: Tuesday, January 06, 2009
Main Menu
Home
News
Articles
- General
- Common Software
- Tips & Tricks
- Networking
- Multimedia
- Operation Systems
- Hardware
- Programming
- Security
- Configs
- CMS
Forum
Downloads
Gallery
Search
FAQ
Links
Ping us
Top 10 Article Posters
empty 37
nemo 3
linuxGuru 1
scary 1
tashak 1
siluni 1
Poll
What OS are you using?

Linux

*BSD

Solaris

Mac OS

Windows

Other

You must login to vote.
How to increase MySQL max connections?

How can I increase MySQL max connections?
This will show you how to increase the max connections variable in MySQL.

When you see the error message on your web site that you are exceeding the MySQL max connections to the database you will need to increase the number in my.cnf.
Note: my.cnf is the configuration file of MySQL.

Usually this file is located at /etc/my.cnf but in the different *nix distributions it can be on a different location.
To increase the max connections variable you will need to edit this file.

Open the file and include the following line under the [mysqld] section:
set-variable = max_connections=XXX
Note: XXX must be replaced with a number of the max allowed connections.

Example:
[mysqld]
set-variable = max_connections=500

In this example we have increased the max connections to 500.

Once this is done you will need to restart the MySQL service. Usually this is done using the command:
/etc/init.d/mysqld restart

Good luck!


Comments
No Comments have been Posted.
Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.
Search

Enter words:


Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Users Online
Guests Online: 1
No Members Online
Registered: 56
Newest: Grantt721
Random Gallery Image
Linux's Hot
Linux's Hot
Wallpapers
Friends
DJs Place
Fresh Flash Games
Free Wallpapers
PHP Scripts
Levski
Flash Games
HouseFreaks.Net
Improvements
Bookmark and Share
News Feeds
Article Feeds
Forum Feeds
Spam Poison
Valid CSS!
OSGuides.net 2007 - 2008 Creative Commons License.