Solved

MySql Configuration

Posted on 2011-09-06
1
458 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 26

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Mysqli Query 5 48
MySQL Error 3 40
Count rows in a MySQL statement, but don't return the value in the results 4 28
category table 2 11
As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
Creating and Managing Databases with phpMyAdmin in cPanel.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

867 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now