Hi Friends,
I am getting below error
Espo.ERROR: Import: [42000] SQLSTATE[42000]: Syntax error or access violation: 1118 Row size too large (> 8126).
Changing some columns to TEXT or BLOB or
using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED
may help. In current row format, BLOB prefix of 768 bytes is stored inline.
--------
I have made all the column to longtext in table even though I am getting above error.Can you suggest me what should I can do?
Table
-------
CREATE TABLE `occupation` (
`id` varchar(24) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(1000) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`description` longtext COLLATE utf8mb4_unicode_ci,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`created_by_id` varchar(24) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`assigned_user_id` varchar(24) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`occupations_id` int(11) DEFAULT '0',
`code` text COLLATE utf8mb4_unicode_ci,
`group` text COLLATE utf8mb4_unicode_ci,
`totalemployment` double DEFAULT NULL,
`percentrelativestandarderror` double DEFAULT NULL,
`meanhourlywage` double DEFAULT NULL,
`mean_annual_wage` double DEFAULT NULL,
`percentrelativestandarderrormeanwage` double DEFAULT NULL,
`hourly10thpercentilewage` double DEFAULT NULL,
`hourly25thpercentilewage` double DEFAULT NULL,
`hourlymedianwage` double DEFAULT NULL,
`hourly75thpercentilewage` double DEFAULT NULL,
`hourly90thpercentilewage` double DEFAULT NULL,
`annual10thpercentilewage` double DEFAULT NULL,
`annual25thpercentilewage` double DEFAULT NULL,
`annualmedianwage` double DEFAULT NULL,
`annual90thpercentilewage` double DEFAULT NULL,
`annual` tinyint(1) NOT NULL DEFAULT '0',
`hourly` tinyint(1) NOT NULL DEFAULT '0',
`major_group` text COLLATE utf8mb4_unicode_ci,
`minor_group` text COLLATE utf8mb4_unicode_ci,
`broad_group` text COLLATE utf8mb4_unicode_ci,
`detailed_occupation` text COLLATE utf8mb4_unicode_ci,
`qfmedianpayhourlynote` longtext COLLATE utf8mb4_unicode_ci,
`moreinformationcitation` longtext COLLATE utf8mb4_unicode_ci,
`moreinformationsectionbody` longtext COLLATE utf8mb4_unicode_ci,
`moreinformationsectiontitle` longtext COLLATE utf8mb4_unicode_ci,
`similaroccupationssectionbody` longtext COLLATE utf8mb4_unicode_ci,
`similar_occupations_section_title` longtext COLLATE utf8mb4_unicode_ci,
`stateandareasectionbody` longtext COLLATE utf8mb4_unicode_ci,
`stateandareasectiontitle` longtext COLLATE utf8mb4_unicode_ci,
`joboutlooksectiondatatable` longtext COLLATE utf8mb4_unicode_ci,
`joboutlooksectionchart` longtext COLLATE utf8mb4_unicode_ci,
`joboutlooksectionbody` longtext COLLATE utf8mb4_unicode_ci,
`paysectioncharthtml` longtext COLLATE utf8mb4_unicode_ci,
`paysectionbody` longtext COLLATE utf8mb4_unicode_ci,
`paysectiontitle` longtext COLLATE utf8mb4_unicode_ci,
`howtobecomeonesectionbody` longtext COLLATE utf8mb4_unicode_ci,
`howtobecomeonesectionimage` longtext COLLATE utf8mb4_unicode_ci,
`howtobecomeonesectiontitle` longtext COLLATE utf8mb4_unicode_ci,
`workenvironmentsectionbody` longtext COLLATE utf8mb4_unicode_ci,
`workenvironmentsectionimage` longtext COLLATE utf8mb4_unicode_ci,
`workenvironmentsectiontitle` longtext COLLATE utf8mb4_unicode_ci,
`whattheydosectionbody` longtext COLLATE utf8mb4_unicode_ci,
`whattheydosectionimage` longtext COLLATE utf8mb4_unicode_ci,
`whattheydosectiontitle` longtext COLLATE utf8mb4_unicode_ci,
`summarymoreinformation` longtext COLLATE utf8mb4_unicode_ci,
`summarysimilaroccupations` longtext COLLATE utf8mb4_unicode_ci,
`summarystateandarea` longtext COLLATE utf8mb4_unicode_ci,
`summaryoutlook` longtext COLLATE utf8mb4_unicode_ci,
`summarypay` longtext COLLATE utf8mb4_unicode_ci,
`summaryhowtobecomeone` longtext COLLATE utf8mb4_unicode_ci,
`summaryworkenvironment` longtext COLLATE utf8mb4_unicode_ci,
`summarywhattheydo` longtext COLLATE utf8mb4_unicode_ci,
`image` longtext COLLATE utf8mb4_unicode_ci,
`qfemploymentoutlookrange` longtext COLLATE utf8mb4_unicode_ci,
`qfemploymentoutlookdescription` longtext COLLATE utf8mb4_unicode_ci,
`qfemploymentoutlook` longtext COLLATE utf8mb4_unicode_ci,
`qfnumberofjobshelp` longtext COLLATE utf8mb4_unicode_ci,
`qfnumberofjobsrange` longtext COLLATE utf8mb4_unicode_ci,
`qfnumberofjobsvalue` longtext COLLATE utf8mb4_unicode_ci,
`qfonthejobtraininghelp` longtext COLLATE utf8mb4_unicode_ci,
`qfonthejobtrainingvalue` longtext COLLATE utf8mb4_unicode_ci,
`qfworkexperiencehelp` longtext COLLATE utf8mb4_unicode_ci,
`qfworkexperiencevalue` text COLLATE utf8mb4_unicode_ci,
`qfentryleveleducationhelp` longtext COLLATE utf8mb4_unicode_ci,
`qfentryleveleducationvalue` longtext COLLATE utf8mb4_unicode_ci,
`qfmedianpayhourlyvalue` double DEFAULT NULL,
`qfmedianpayhourlyhelp` longtext COLLATE utf8mb4_unicode_ci,
`qfmedianpayannualhelp` longtext COLLATE utf8mb4_unicode_ci,
`qfmedianpayannualvalue` double DEFAULT NULL,
`videolink` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`occupationnameshortsingular` longtext COLLATE utf8mb4_unicode_ci,
`occupationnameshortplural` longtext COLLATE utf8mb4_unicode_ci,
`occupationnamefull` longtext COLLATE utf8mb4_unicode_ci,
`occupationcode` longtext COLLATE utf8mb4_unicode_ci,
`annual75thpercentilewage` double DEFAULT NULL,
`main_id` longtext COLLATE utf8mb4_unicode_ci,
`parentcode` int(11) DEFAULT NULL,
`minorgroup` longtext COLLATE utf8mb4_unicode_ci,
`detailedoccupation` longtext COLLATE utf8mb4_unicode_ci,
`title` longtext COLLATE utf8mb4_unicode_ci,
`qfemploymentopeningshelp` longtext COLLATE utf8mb4_unicode_ci,
`qfemploymentoutlookhelp` longtext COLLATE utf8mb4_unicode_ci,
`qfemploymentopeningsvalue` longtext COLLATE utf8mb4_unicode_ci,
`qfmedianpayannualrange` longtext COLLATE utf8mb4_unicode_ci,
PRIMARY KEY (`id`),
KEY `IDX_CREATED_BY_ID` (`created_by_id`),
KEY `IDX_MODIFIED_BY_ID` (`modified_by_id`),
KEY `IDX_ASSIGNED_USER_ID` (`assigned_user_id`),
KEY `IDX_NAME` (`name`(255),`deleted`),
KEY `IDX_ASSIGNED_USER` (`assigned_user_id`,`deleted`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC KEY_BLOCK_SIZE=8;
--------------
I am getting below error
Espo.ERROR: Import: [42000] SQLSTATE[42000]: Syntax error or access violation: 1118 Row size too large (> 8126).
Changing some columns to TEXT or BLOB or
using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED
may help. In current row format, BLOB prefix of 768 bytes is stored inline.
--------
I have made all the column to longtext in table even though I am getting above error.Can you suggest me what should I can do?
Table
-------
CREATE TABLE `occupation` (
`id` varchar(24) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(1000) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`description` longtext COLLATE utf8mb4_unicode_ci,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`created_by_id` varchar(24) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`assigned_user_id` varchar(24) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`occupations_id` int(11) DEFAULT '0',
`code` text COLLATE utf8mb4_unicode_ci,
`group` text COLLATE utf8mb4_unicode_ci,
`totalemployment` double DEFAULT NULL,
`percentrelativestandarderror` double DEFAULT NULL,
`meanhourlywage` double DEFAULT NULL,
`mean_annual_wage` double DEFAULT NULL,
`percentrelativestandarderrormeanwage` double DEFAULT NULL,
`hourly10thpercentilewage` double DEFAULT NULL,
`hourly25thpercentilewage` double DEFAULT NULL,
`hourlymedianwage` double DEFAULT NULL,
`hourly75thpercentilewage` double DEFAULT NULL,
`hourly90thpercentilewage` double DEFAULT NULL,
`annual10thpercentilewage` double DEFAULT NULL,
`annual25thpercentilewage` double DEFAULT NULL,
`annualmedianwage` double DEFAULT NULL,
`annual90thpercentilewage` double DEFAULT NULL,
`annual` tinyint(1) NOT NULL DEFAULT '0',
`hourly` tinyint(1) NOT NULL DEFAULT '0',
`major_group` text COLLATE utf8mb4_unicode_ci,
`minor_group` text COLLATE utf8mb4_unicode_ci,
`broad_group` text COLLATE utf8mb4_unicode_ci,
`detailed_occupation` text COLLATE utf8mb4_unicode_ci,
`qfmedianpayhourlynote` longtext COLLATE utf8mb4_unicode_ci,
`moreinformationcitation` longtext COLLATE utf8mb4_unicode_ci,
`moreinformationsectionbody` longtext COLLATE utf8mb4_unicode_ci,
`moreinformationsectiontitle` longtext COLLATE utf8mb4_unicode_ci,
`similaroccupationssectionbody` longtext COLLATE utf8mb4_unicode_ci,
`similar_occupations_section_title` longtext COLLATE utf8mb4_unicode_ci,
`stateandareasectionbody` longtext COLLATE utf8mb4_unicode_ci,
`stateandareasectiontitle` longtext COLLATE utf8mb4_unicode_ci,
`joboutlooksectiondatatable` longtext COLLATE utf8mb4_unicode_ci,
`joboutlooksectionchart` longtext COLLATE utf8mb4_unicode_ci,
`joboutlooksectionbody` longtext COLLATE utf8mb4_unicode_ci,
`paysectioncharthtml` longtext COLLATE utf8mb4_unicode_ci,
`paysectionbody` longtext COLLATE utf8mb4_unicode_ci,
`paysectiontitle` longtext COLLATE utf8mb4_unicode_ci,
`howtobecomeonesectionbody` longtext COLLATE utf8mb4_unicode_ci,
`howtobecomeonesectionimage` longtext COLLATE utf8mb4_unicode_ci,
`howtobecomeonesectiontitle` longtext COLLATE utf8mb4_unicode_ci,
`workenvironmentsectionbody` longtext COLLATE utf8mb4_unicode_ci,
`workenvironmentsectionimage` longtext COLLATE utf8mb4_unicode_ci,
`workenvironmentsectiontitle` longtext COLLATE utf8mb4_unicode_ci,
`whattheydosectionbody` longtext COLLATE utf8mb4_unicode_ci,
`whattheydosectionimage` longtext COLLATE utf8mb4_unicode_ci,
`whattheydosectiontitle` longtext COLLATE utf8mb4_unicode_ci,
`summarymoreinformation` longtext COLLATE utf8mb4_unicode_ci,
`summarysimilaroccupations` longtext COLLATE utf8mb4_unicode_ci,
`summarystateandarea` longtext COLLATE utf8mb4_unicode_ci,
`summaryoutlook` longtext COLLATE utf8mb4_unicode_ci,
`summarypay` longtext COLLATE utf8mb4_unicode_ci,
`summaryhowtobecomeone` longtext COLLATE utf8mb4_unicode_ci,
`summaryworkenvironment` longtext COLLATE utf8mb4_unicode_ci,
`summarywhattheydo` longtext COLLATE utf8mb4_unicode_ci,
`image` longtext COLLATE utf8mb4_unicode_ci,
`qfemploymentoutlookrange` longtext COLLATE utf8mb4_unicode_ci,
`qfemploymentoutlookdescription` longtext COLLATE utf8mb4_unicode_ci,
`qfemploymentoutlook` longtext COLLATE utf8mb4_unicode_ci,
`qfnumberofjobshelp` longtext COLLATE utf8mb4_unicode_ci,
`qfnumberofjobsrange` longtext COLLATE utf8mb4_unicode_ci,
`qfnumberofjobsvalue` longtext COLLATE utf8mb4_unicode_ci,
`qfonthejobtraininghelp` longtext COLLATE utf8mb4_unicode_ci,
`qfonthejobtrainingvalue` longtext COLLATE utf8mb4_unicode_ci,
`qfworkexperiencehelp` longtext COLLATE utf8mb4_unicode_ci,
`qfworkexperiencevalue` text COLLATE utf8mb4_unicode_ci,
`qfentryleveleducationhelp` longtext COLLATE utf8mb4_unicode_ci,
`qfentryleveleducationvalue` longtext COLLATE utf8mb4_unicode_ci,
`qfmedianpayhourlyvalue` double DEFAULT NULL,
`qfmedianpayhourlyhelp` longtext COLLATE utf8mb4_unicode_ci,
`qfmedianpayannualhelp` longtext COLLATE utf8mb4_unicode_ci,
`qfmedianpayannualvalue` double DEFAULT NULL,
`videolink` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`occupationnameshortsingular` longtext COLLATE utf8mb4_unicode_ci,
`occupationnameshortplural` longtext COLLATE utf8mb4_unicode_ci,
`occupationnamefull` longtext COLLATE utf8mb4_unicode_ci,
`occupationcode` longtext COLLATE utf8mb4_unicode_ci,
`annual75thpercentilewage` double DEFAULT NULL,
`main_id` longtext COLLATE utf8mb4_unicode_ci,
`parentcode` int(11) DEFAULT NULL,
`minorgroup` longtext COLLATE utf8mb4_unicode_ci,
`detailedoccupation` longtext COLLATE utf8mb4_unicode_ci,
`title` longtext COLLATE utf8mb4_unicode_ci,
`qfemploymentopeningshelp` longtext COLLATE utf8mb4_unicode_ci,
`qfemploymentoutlookhelp` longtext COLLATE utf8mb4_unicode_ci,
`qfemploymentopeningsvalue` longtext COLLATE utf8mb4_unicode_ci,
`qfmedianpayannualrange` longtext COLLATE utf8mb4_unicode_ci,
PRIMARY KEY (`id`),
KEY `IDX_CREATED_BY_ID` (`created_by_id`),
KEY `IDX_MODIFIED_BY_ID` (`modified_by_id`),
KEY `IDX_ASSIGNED_USER_ID` (`assigned_user_id`),
KEY `IDX_NAME` (`name`(255),`deleted`),
KEY `IDX_ASSIGNED_USER` (`assigned_user_id`,`deleted`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC KEY_BLOCK_SIZE=8;
--------------
Comment