diff --git a/Documentation/GeneralTips.rst b/Documentation/GeneralTips.rst index 818a8dcc73782e1a25c6a0cac2421a6f3a740869..f597dc8410a80c1ea9918892731d9fbb28ae3881 100644 --- a/Documentation/GeneralTips.rst +++ b/Documentation/GeneralTips.rst @@ -301,13 +301,21 @@ Row size too large * Details: https://mariadb.com/kb/en/troubleshooting-row-size-too-large-errors-with-innodb/ * Typically too many columns per table on an InnoDB Table. -* First try is to check (and to change) ROW_FORMAT:: +* First try is to check (and to change) ROW_FORMAT: :: ALTER TABLE tab ROW_FORMAT=DYNAMIC; * Bad workaround for creating a wide table:: - SET SESSION innodb_strict_mode=OFF; - CREATE TABLE ... + SET SESSION innodb_strict_mode=OFF; + CREATE TABLE ... + +* Best is to change as much columns as neccessary from ``varchar()`` to ``tinytext`` / ``text`` + +SQL Dump with one record per line +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Sometimes it's helpful to have SQL dumps with each record on a single line:: + + msyqldump --skip-opt <DB-Name> -* Best is to change as much columns as neccessary from ``varchar()`` to ``tinytext`` / ``text`` \ No newline at end of file