LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-27-2005, 10:20 PM   #1
Maxman
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Rep: Reputation: 0
My.cnf


I run a football website. It is on a dedicated server running Free BSD. The main focus of the site is a Message Board (phpbb). Anyhow when we approach 100 users things seem to crawl. CPU utilizations seems fine (less than 20%) - P4 2.8ghz. RAM seems high, only 1 gig so it goes to swap all the time.

Anyhow after doing a ton of reading (Linux - MYSQL are brand new to me) I think I have found that the default MYSQL setting is limited to 100 connections. So this makes sense.

I was told to edit \etc\my.cnf. After figuring out SSH and PICO I have just realized that this file does not exist on my server. I used to Locate command but my.cnf is nowhere to be found.

My question is can I just add it and put in the max_connections - variable?

Any help or thoughts would be GREATLY appreciated. Thanks!
 
Old 10-28-2005, 07:32 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
In the default mysql installation there is no my.cnf. There are my-small.cnf, my-medium.cnf, my-large.cnf etc. You pick the one that fit your needs, you modify it and then you copy it as my.cnf under /etc.
 
Old 10-28-2005, 07:36 AM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Usually MySQL installs with several examples of a my.cnf file and they are usually called something like my-huge.cnf, my-large.cnf, my-medium.cnf and my-small.cnf. You might want to search for those and copy one of them to my.cnf and then edit it. You could just add a my.cnf file, but you would run the risk of hosing up some of the other settings. You're really better off finding an example of my.cnf (maybe on the MySQL site?) and editing that.

And my apologies in advance if this is offensive, but you do know that FreeBSD isn't Linux, don't you?
 
Old 10-28-2005, 07:51 AM   #4
Maxman
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the my.cnf info.



Quote:
Originally posted by bathory
In the default mysql installation there is no my.cnf. There are my-small.cnf, my-medium.cnf, my-large.cnf etc. You pick the one that fit your needs, you modify it and then you copy it as my.cnf under /etc.
 
Old 10-28-2005, 07:52 AM   #5
Maxman
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Hangdog42


And my apologies in advance if this is offensive, but you do know that FreeBSD isn't Linux, don't you?
No I didn't know that. Like I mentioned this is ALL Brand new to me. I run a football site that is exploding. First time I tried anything like this. I am learning as I go!!!
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to config the mysql my.cnf? treotan Linux - General 1 09-14-2005 11:05 AM
my.cnf setup anyone? DropHit Linux - Software 0 11-09-2004 01:12 PM
Where is the file my.cnf? philipina Linux - General 1 10-21-2004 08:07 AM
my.cnf mnauta Linux - General 2 02-06-2004 11:31 AM
my.cnf doodah Linux - General 2 05-31-2001 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration