Solved

MySql Configuration

Posted on 2011-09-06
1
468 Views
Last Modified: 2012-06-22
Our website is currently experiencing a database bottleneck and we are wondering if its our configuration, we have the configuration posted below, we are not experienced in this matter, we tried to copy the configuration as best as possible from our previous website but it was a newer version of mysql, also the mysql workbench is throwing an error saying that...

"Configuration file did not contain section [mysqld], so a new one was added.  If that is not correct, please fix the sesction name in the Server Instance Editor and reopen the administrator."

this is causing an issue since we cant edit our configuration in the MySql Workbench.
[mysqld]

port=3306
basedir=C:\\Program Files (x86)\\Parallels\\Plesk\\Databases\\MySQL
datadir=C:\\Program Files (x86)\\Parallels\\Plesk\\Databases\\MySQL\\Data
default-character-set=utf8
default-storage-engine=INNODB
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
max_connections=400


# properties that are different from previous version, 64M,2M,1520
query_cache_size=1MB
query_cache_limit=128MB


tmp_table_size=64MB
key_buffer_size=256M
read_buffer_size=1M
table_cache=1520
myisam_sort_buffer_size=32M
innodb_additional_mem_pool_size=384M
thread_cache_size=38
myisam_max_sort_file_size=100G
myisam_max_extra_sort_file_size=100G
read_rnd_buffer_size=256K


innodb_flush_log_at_trx_commit=1
innodb_log_file_size=10M
innodb_thread_concurrency=8
sync_binlog=1
ft_min_word_len=2
innodb_log_buffer_size=3M
innodb_buffer_pool_size=218M



old_passwords=1
thread_stack=196608
binlog_cache_size=32768
net_read_timeout=30
net_retry_count=10
net_write_timeout=30
thread_concurrency=10
open_files_limit=0
character-set-server=latin1
sort_buffer_size = 256k
wait_timeout = 360

[client]
port=3306

[mysql]
default-character-set=utf8

Open in new window

0
Comment
Question by:recruitit
1 Comment
 
LVL 27

Accepted Solution

by:
skullnobrains earned 500 total points
ID: 36490238
you definitely sjould make the innodb_buffer_pool_size as big as possible if you are using innodb

normally, when changing it, you should also change the log_buffer_size but THIS IS DANGEROUS IF YOU DO NOT READ THE MANUAL PAGE CONCERNING INNODB RECUPERATION so you may as well leave it alone

lots of other thing can be tuned such as make the transaction isolation lower, ad the skip_double_write option, remove innodb_flush_log_at_trx_commit=1
if you don't need it, remove the binlog if you do not use replication ...

anyway, i would not recommend changing anything other than the pool size before you perform what needs to be done first :

- post complete information such as mysql version, hardware information about the server (mainly RAM, number of CPUs and expected IO performance), and the type of load the server is under (lots af small inserts with a few huge selects with outer joins for example)

- tell us what you actually see and why you think this is a database bottleneck
i'm not questionning your conclusions, but you may have various problems from IO shortage to a number of connections exceeding mysql's max_users

- first check your application and your indexes for much more usefull optimisations
you may use the slow_queries_log to identify long queries and replay them by adding EXPLAIN before the select clauses

- maybe also look at the innodb log since you may also have deadlock issues

good luck
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Creating and Managing Databases with phpMyAdmin in cPanel.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question