Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I updated my dev-box's WAMPSERVER, and along with updating PHP and Apache, MySQL updated to '5.6.12'. After doing that, I copied the data folder from my old (5.1.36) install to the new one and now MySQL takes up 580mB which is way too much, since I'm the only person using it (Locally) and there are only 20 or so databases on it, none of which have 'memory' tables.

How can I get this down to a decent amount?

My my.ini:

# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.

[mysqld]

# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin

# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....


# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M 

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 

Database info:

Storage Engine  Data Size   Index Size  Total Size  
InnoDB           48.00 KB             0.00  B            48.00 KB
MEMORY            0.00  B             0.00  B             0.00  B
MyISAM          163.64 MB           122.49 MB           286.13 MB
Total           163.69 MB           122.49 MB           286.18 MB
share|improve this question
    
1) Is your data all InnoDB, all MyISAM, or a mixture of both ??? 2) How much RAM in the DevBox WAMP Server ? 3) Can you please post your my.cnf into the question ??? –  RolandoMySQLDBA Jul 5 '13 at 15:49
    
1) I believe a mixture of both, 2) 8gb of ram, 3) Alright I'll update the main post. –  Jon Jul 6 '13 at 17:26
    
I added q query for you to run. –  RolandoMySQLDBA Jul 8 '13 at 13:09
    
Please run the first query at this link : dba.stackexchange.com/a/45682/877 and post the results. –  RolandoMySQLDBA Jul 8 '13 at 14:08
    
@RolandoMySQLDBA Updated the main post with the output, thanks. –  Jon Jul 8 '13 at 14:16
show 6 more comments

1 Answer

You can set "table_definition_cache = 400" in my.ini and restart mysqld

share|improve this answer
    
Your answer is too terse. Could you please explain at least what will be changed by this parameter? –  pabouk Feb 14 at 22:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.