MySQL Forums
Forum List  »  Install & Repo

Re: Disk Space
Posted by: jean touzalin
Date: April 07, 2014 03:02AM

Hi Cedric,

Well, there is no link between poor performance and this big file.
To shrink your tablespace
1. verifiy you have a good backup.
2. change your innodb tables to MyIsam
alter table xxx engine=MyIsam;
3. verify your config around innodb

Example: show variables like 'inno%';
...
innodb_data_file_path ibdata1:1G:autoextend
in your my.cnf set innodb_data_file_path = ibdata1:1G:autoextend
4. Set also other variables around innodb
5. drop the file ibdata1.*
6. restart the mysql server
7. modify the previous tables to Innodb

That's all

For performance problem, enable slow queries and queries without indexes
long_query_time=2 -- after 2 seconds executing go to slow_query.log
log_slow_queries=ON
log_queries_not_using_indexes

Adjust variables around %buffer%
Verify you system is not swapping (htop show a good insight)
Analyse you slow_query log, verify the execution plan...

regards
Jean-Luc

Options: ReplyQuote


Subject
Written By
Posted
April 01, 2014 03:09AM
April 01, 2014 04:26AM
April 02, 2014 02:20AM
April 02, 2014 10:47AM
April 03, 2014 02:08AM
April 04, 2014 08:12AM
Re: Disk Space
April 07, 2014 03:02AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.