FORUM HOME | WHUK BLOG   
WEB HOSTING UK AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM
PHP LINUX SHARED HOSTING WINDOWS ASP.NET HOSTING PACKAGES
ECOMMERCE HOSTING ASP MSSQL MS ACCESS ODBC FRONTPAGE HOSTING
CPANEL WHM FANTASTICO RESELLER DEDICATED SERVER WEB HOSTING
CHEAP PLESK CPANEL HTML MYSQL BEST UK VPS HOSTING COMPANY
CHEAP RELIABLE UK HOSTING PROVIDER SINCE 2001
MANAGED WEB HOSTING SERVICE
AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM

Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum » Web Hosting and Domains » FAQ's / Tutorials.

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 08-01-11, 09:41 AM
~Phil~'s Avatar
Member
 
Join Date: Aug 2010
Posts: 32
Default Parameters of MySQL Settings/variables in the my.cnf

Parameters of MySQL Settings/variables in the my.cnf file.

Quote:
1. query_cache_size:
*********************
If the same queries has to be run on the database, the outcome of the query is also going to be the same, MySQL server can cache the result, so the work load on the MySQL server will get reduced. This is quite a handy settings on very busy server.

2. key_buffer_size:
*******************
In simple words we can understand the buffer size as size of buffer allocated on MySQL server to execute query. The execution speed of MySQL command depends on this.
key_buffer_size should not be set more then 50% of server's total memory

* To check the actual performance of the buffer please check these variables: key_read_requests, key_reads, key_write_requests, and key_writes.
* The ratio of key_read to the value of key_reads_requests, should be less than 0.01.
And ratio of key_write by the value of key_writes_requests, should be less than 1.

3. table_cache:
*****************
If the MySQl server has to go through the same high number of table many times, it is cached. So the speed of operation increases.This parameter is vary important on shared server, as on shared server many MySQL Query may get executed simultaneously.


4. sort_buffer:
***************
This setting used to speed up the the database check operations, or sorts running.

5. read_rnd_buffer_size:
**************************
On MySQL server the read_rnd_buffer is used to read the tables once it is sorted. Having its value set to high the performance of the server can be increased.

6. thread_cache:
******************
This settings is tweaked to reduce the load on CPU of the server if the server gets the connections in very short span of time ( very quickly).
if this is the case please set its value high enough.

7. tmp_table_size:
*******************
This setting is for the size of the memory allocated on MySQL server for executing statements in the database before the modification in the database is saved on the hard disk of the server.
It is not advisable to increase the tmp_table_size, so please set the appropriate value while optimizing MySQL

8. query_cache_size
********************

This function helps in reducing the MySQL server workload if the same query is getting executed on the server time and again. For setting query_cache_size it is importent to set query_cache_type

There are three status for query caching;

1. Disabled - query_cache_type = 0

2. Enabled - query_cache_type = 1

3. On Demand - query_cache_type = 2


If its value is set to o then the query_cache_size will take effect, so to set query_cache_size you will have to use query_cache_type = 1
================================================== ====
Reply With Quote

Reply

Thread Tools
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

Forum Jump


All times are GMT. The time now is 07:05 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Copyright 2001-2010 Web Hosting UK. All rights reserved.
Web Hosting UK Forum





Site Map

Shared Cloud
Shared Cloud From £1

Affiliate Program
Earn up to £300 Per Sale

Dedicated Servers
Dedicated Server Hosting

Cloud Hosting
Cloud Server Hosting

Load Balanced Server
Load Balancing Server

VPS Hosting
Linux VPS Hosting

Windows VPS
Windows 2003 VPS

Zimbra Hosting
Zimbra Email Hosting

cPanel Hosting
Shared Linux Hosting

Windows Hosting
Shared Windows Hosting

Coldfusion Hosting
Windows Coldfusion Hosting

cPanel Reseller Hosting
Reseller Hosting

Windows Reseller
Windows Reseller Hosting

Email Web Hosting
Email Hosting

Semi-Dedicated Server
Semi-Dedicated Hosting

Remote Backup Plans
Offsite Backup Service


cpanel hosting
Knowledgebase Articles

Pre-Sales Question
Web Hosting FAQ's

Dedicated Hosting
Dedicated Server FAQ's

Virtual Private Servers
VPS Hosting

PHP MySQL Hosting
cPanel Hosting

Windows Hosting
ASP MSSQL Hosting

Domain Name
Domain registration FAQ's

CMS Hosting
CMS Hosting FAQ's

Payment Gateways
Payment FAQ's


Support Tutorials

cPanel Tutorials
cPanel Flash Tutorials

Wordpress Tutorials
Wordpress Flash Tutorials

Plesk Tutorials
Plesk Flash Tutorials

PhpMyadmin Tutorials
PhpMyadmin Flash Tutorials

Drupal Tutorials
Drupal Flash Tutorials

Mambo Tutorials
Mambo Flash Tutorials

Joomla Tutorials
Joomla Flash Tutorials

More Hosting Tutorials