LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-04-2009, 03:56 AM   #1
Stephan_Craft
Member
 
Registered: Jul 2008
Posts: 184

Rep: Reputation: 30
My.cnf improvment


what kind of 'skips' I can use to make mysql work better?

right now i have this:
PHP Code:
skip-locking
skip
-innodb
skip
-external-locking
skip
-name-resolve 
 
Old 04-05-2009, 08:31 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Well, that kind of depends -- which of the configuration files did you start with (they are my-huge.cnf, my-large.cnf, my-medium.cnf or my-small.cnf)? If you've got 1G - 2G of memory, my-huge.cnf may be the best choice to copy to my.cnf. The "huge" configuration provides larger buffer and cache sizes which significantly improves performance over the others.

On my machines, I have only skip-locking and skip-federated active and the performance is more than satisfactory (I run multiple data bases that are anywhere from 3G to 20G in size). This is a single 3G processor, 2G of RAM. I have /var/lib/mysql in a separate 64G partition. You may want to comment out skip-networking so MySQL doesn't listen on a TCP/IP port, but you need to think that one through -- the blurb is
Code:
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking
You may need to do this in any event if you want to use ODBC.

Hope this helps some.
 
Old 04-07-2009, 10:28 PM   #3
mosesdel
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Rep: Reputation: 0
my-huge.cnf on UBUNTU

Hello all
I will ask about the type of configuration for mysql server on ubuntu.

I have a server with 8 GB memory and used for public access and the average hit 1,000 pages per day.

If I look at some mysql configuration such as:

-rw-r - r - 1 root root 4929 2009-04-07 19:09 my-huge.cnf
-rw-r - r - 1 root root 20927 2009-04-07 19:09 my-innodb-heavy-4G.cnf
-rw-r - r - 1 root root 4905 2009-04-07 19:09 my-large.cnf
-rw-r - r - 1 root root 2113 2009-04-07 19:09 my-medium.cnf.gz
-rw-r - r - 1 root root 2482 2009-04-07 19:09 my-small.cnf
-rw-r - r - 1 root root 723 2009-04-07 19:09 ndb_mgmd.cnf

If I want to use my-huge.cnf, is it enough to copy /etc/mysql/ my.cnf?

If I see in my configurasi-huge.cnf, innodb line to comment on whether I need to menuncomment that?

Thanks
 
Old 04-08-2009, 02:57 AM   #4
Stephan_Craft
Member
 
Registered: Jul 2008
Posts: 184

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by tronayne View Post
Well, that kind of depends -- which of the configuration files did you start with (they are my-huge.cnf, my-large.cnf, my-medium.cnf or my-small.cnf)? If you've got 1G - 2G of memory, my-huge.cnf may be the best choice to copy to my.cnf. The "huge" configuration provides larger buffer and cache sizes which significantly improves performance over the others.

On my machines, I have only skip-locking and skip-federated active and the performance is more than satisfactory (I run multiple data bases that are anywhere from 3G to 20G in size). This is a single 3G processor, 2G of RAM. I have /var/lib/mysql in a separate 64G partition. You may want to comment out skip-networking so MySQL doesn't listen on a TCP/IP port, but you need to think that one through -- the blurb is
Code:
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking
You may need to do this in any event if you want to use ODBC.

Hope this helps some.
Thanks I'll remember that.

how this option skip-federated effects on mysql?

Last edited by Stephan_Craft; 04-08-2009 at 03:23 AM.
 
Old 04-08-2009, 08:57 AM   #5
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Quote:
how this option skip-federated effects on mysql?
A quick look at http://dev.mysql.com/doc/refman/5.0/...ge-engine.html indicates
Quote:
The FEDERATED storage engine is available beginning with MySQL 5.0.3. It is a storage engine that accesses data in tables of remote databases rather than in local tables.
You'd use it if you have a server farm with data bases spread across multiple servers; if not, don't.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
my.cnf autocommit senyahnoj Programming 2 02-02-2007 11:49 AM
My.cnf Maxman Linux - General 4 10-28-2005 07:52 AM
my.cnf mnauta Linux - General 2 02-06-2004 11:31 AM
Help needed for Security Improvment aisman Linux - Security 3 07-21-2002 11:12 AM
my.cnf doodah Linux - General 2 05-31-2001 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:14 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