uberhacker / shrink-ibdata1

Bash shell script to shrink /var/lib/mysql/ibdata1 and restore disk space
GNU General Public License v3.0
24 stars 8 forks source link

Observed failure at this point #6

Open nitinthewiz opened 5 years ago

nitinthewiz commented 5 years ago

https://github.com/uberhacker/shrink-ibdata1/blob/48bb09a46a171d134deefd82fa6c2099e4ca47dc/shrink#L344

The entire script works perfectly, but I just shrunk my ibdata file from 5.5 GB to 550 MB and the script crapped out with this error - Size of /var/lib/mysql/ibdata1 before shrinking: 5.5G ./shrink: line 344: "5761040"-"575492": syntax error: operand expected (error token is ""5761040"-"575492"")

Now that it matters! Excellent work on the script! 👍