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! 👍
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! 👍