Jump to content

SQL error on query Index column size too large. The maximum column size is 767 bytes.


Recommended Posts

Can some on help to see whats wrong and how to repair?

An error occurred during installation...

You can use the links on the left column to go back to the previous steps, or restart the installation process by clicking here.

1: SQL error on query Index column size too large. The maximum column size is 767 bytes.

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

Hi

you could edit the file install/data/db_structure.sql and replace every occurance of

DEFAULT CHARSET=utf8mb4 COLLATION

with

DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci

then klick the restart button and the install works..

but not sure if this has any long term impact on the shop

  • Like 1
  • Thanks 4
Link to comment
Share on other sites

  • 1 month later...
  • 1 year later...
  • 5 months later...
  • 4 weeks later...

Thanks for sharing. It works.

File location \psroot\install\data\db_structure.sql

Before doing change

CREATE TABLE `PREFIX_accessory` (
  `id_product_1` int(10) unsigned NOT NULL,
  `id_product_2` int(10) unsigned NOT NULL,
  KEY `accessory_product` (`id_product_1`, `id_product_2`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8mb4 COLLATION;

After doing change

CREATE TABLE `PREFIX_accessory` (
  `id_product_1` int(10) unsigned NOT NULL,
  `id_product_2` int(10) unsigned NOT NULL,
  KEY `accessory_product` (`id_product_1`, `id_product_2`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ;

Link to comment
Share on other sites

  • 1 month later...

Dated: 13 October 2022

I faced the very same issue during a fresh installation using wamp but this solution didn't work for me. I was still getting the error so I searched over youtube and found another solution where I had to change text type to dynamic and it worked. Video for reference: 

solution.thumb.jpg.30a3ac68141fe5d90959bae2e1022819.jpg

  • Like 1
  • Thanks 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...