0

on mysql /var/lib/mysql

there is one file called 'ibdata1' which is very large and it took large space from my server and the mysql didn't start

how can I stop growing ibdata1 file size please help me

many thanks

1 Answer 1

2

It's a common question since mysql 5.5.

common way to resolve this issue:

  1. Dump all databases
  2. Stop MySQL server
  3. Add "innodb_file_per_table" option to your my.cnf
  4. import your databases

I found a shell script here. for your reference. https://github.com/uberhacker/shrink-ibdata1

Reference:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .