MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old May 2nd, 2000, 02:02 PM
werehere werehere is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 1 werehere User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I am trying to get the max_connections upped to 800 and cannot get it just right.

I am using

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
mysqld -o max_connections=800 &
[/code]

through telnet, and it is not changing it, but I get a command not found. I was in the usr/sbin/ directory where msqld, so what am I missing?

Anyone have a few pointers, or can correct my syntax for me?


Thanks

------------------
http://www.were-here.com

Reply With Quote
  #2  
Old May 10th, 2000, 07:42 AM
gbubani gbubani is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 10 gbubani User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by werehere:
I am trying to get the max_connections upped to 800 and cannot get it just right.

I am using

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
mysqld -o max_connections=800 &
[/code]

through telnet, and it is not changing it, but I get a command not found. I was in the usr/sbin/ directory where msqld, so what am I missing?

Anyone have a few pointers, or can correct my syntax for me?


Thanks
[/quote]


Hi,

I had the same problem and tried to change default value for max_connections through the my.cnf file, without success.

In file /etc/rc.d/init.d/mysql try edit the line :

--user=$mysql_daemon_user --datadir=$datadir --pid-file=$pid_file --log=log_file --set-variable max_connections=800 &

Make sure you have enough memory. Each connection requires, at least, the amount indicated by sort_buffer variable(default = 2Mb - see mysqladmin variables). So, for 800 connections you need at least 800*2Mb = 1600 Mb.

I'm not sure about other memory that may be required.

You can find some more tuning info, searchinf for the word 'tuning' or even 'max_connections'in the mysql discussion forum.
Bye,

GBubani

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > mysqld -o max_connections=800 &


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway