Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server Variable Suggestions

Status
Not open for further replies.

dstrange

Programmer
Nov 15, 2006
87
CA
Anyone have any initial my.ini server variable suggestions for improving db performance. We use a INNODB db at work containing 200 tables with 60 views and usually have between 3-5 users using an app writing to the db constantly.

By default the ini file variables are setup like this:

Code:
[client]

port=3306

[mysql]

default-character-set=latin1

[mysqld]

port=3306
basedir="C:/Program Files/MySQL/MySQL Server 5.0/"
datadir="C:/Program Files/MySQL/MySQL Server 5.0/Data/"
default-storage-engine=INNODB
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
max_connections=100
query_cache_size=500k
table_cache=256
tmp_table_size=17M
thread_cache_size=8

#*** MyISAM Specific options
myisam_max_sort_file_size=100G
myisam_max_extra_sort_file_size=100G
myisam_sort_buffer_size=34M
key_buffer_size=25M
read_buffer_size=64K
read_rnd_buffer_size=256K
sort_buffer_size=256K


#*** INNODB Specific options ***
innodb_additional_mem_pool_size=2M
innodb_flush_log_at_trx_commit=1
innodb_log_buffer_size=1M
innodb_buffer_pool_size=47M
innodb_log_file_size=24M
innodb_thread_concurrency=8

Really any suggestions as to what I can read/research about or what could be improved upon would be a great start. I'm just not too sure where to start. Thanks in advance.
-DS
 

also turn on slow query log to trap slow queries

and run explain plans on slow queries to help ensure that indeces are used and the query is optimized.

Bastien

I wish my computer would do what I want it to do,
instead of what I tell it to do...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top