Comments - Troubleshooting Row Size Too Large Errors with InnoDB

12 months ago Gerald Schade

Your script after "Finding All Tables That Currently Have the Problem" fails if table names contain spaces.

This could be corrected if the line:

for t in $(mysql -h $1 -u $2 -p$3 -ABNe "show tables;" $d)

were replaced by:

mysql -h $1 -u $2 -p$3 -ABNe "show tables;" $d|while read t; do

and $t twice by \`$t\`

after "show create table" and "drop table if exists".

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.