I always got this error: Code: Lost connection to MySQL server during query when executing 'OPTIMIZE TABLE ... ' When optimizing database table using this command: Code: mysqlcheck -u root -p --auto-repair --optimize --all-databases Error always show after this table: Code: xenforo_database.xf_search OK With all XenForo Forum DB I tried, it always fail. Any idea? :/
Someone with XF forums can also try? Running this: Code: mysqlcheck -u root -p --auto-repair --optimize --all-databases
OPTIMIZE command, read up on MySQL official documentation on what the OPTIMIZE command does and how it can be bad for InnoDB tables especially on large table sizes due to InnoDB not supporting OPTIMIZE command the way it does for MyISAM tables if InnoDB is not configured in a specific way same with mysqlcheck and InnoDB vs MyISAM Basically, understand what OPTIMIZE does exactly and when to use it.
Sorry, I just google it and found several same questions like Roldan wrote. Every each of that suggest what I quote. Sorry if I make you Roldan problem with my answer. I am sorry
very dangerous using level 4 see MySQL :: MySQL 5.6 Reference Manual :: 14.21.2 Forcing InnoDB Recovery always read official MySQL documentation first MySQL :: MySQL Documentation