- Posts: 3
- Home
- Forum
- Community Forum
- General discussions
- Migration to Joomla 4
- Forum
- Community Forum
- Questions
- Installation/Upgrade
- SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes - Help please.
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes - Help please.
- joejac
- Topic Author
- Offline
Less
More
7 years 9 months ago - 7 years 9 months ago #7707
by joejac
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes - Help please. was created by joejac
Hello
This is my first attempt to install Solidres:
1.- I installed Joomla latest stable version 3.6.0 with no problem, I have the website with the default demo data and the administrator back-end module, both are working fine.
2.- Following your Installation Tutorial I tried to install Solidres in the 3 possible ways all of them giving the following error:
I installed Joomla in a hosting account in a VPS with the following characteristics:
I appreciate a lot your help to find the issue because in Joomla forum I have not found any similar error.
Best regards
joejac
This is my first attempt to install Solidres:
1.- I installed Joomla latest stable version 3.6.0 with no problem, I have the website with the default demo data and the administrator back-end module, both are working fine.
2.- Following your Installation Tutorial I tried to install Solidres in the 3 possible ways all of them giving the following error:
I installed Joomla in a hosting account in a VPS with the following characteristics:
I appreciate a lot your help to find the issue because in Joomla forum I have not found any similar error.
Best regards
joejac
Last edit: 7 years 9 months ago by joejac.
Please Log in or Create an account to join the conversation.
- joejac
- Topic Author
- Offline
Less
More
- Posts: 3
7 years 9 months ago #7711
by joejac
Replied by joejac on topic SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes - Help please.
This is what I did:
1.- I reinstalled Joomla with Carset: utf8mb4 Collation: utf8mb4_unicode_ci same problem
2.- I changed all tables and db to MyISAM and restarted MySQL, except these ones:
On these I got:
So these 9 tables still have InnoDB
I have other 2 that has MEMORY type
cabo_finder_tokens MEMORY
cabo_finder_tokens_aggregate MEMORY
The rest are now MyISAM
3.- During the installation Joomla gave a warning that Mcrypt module was not present I installed restarted Apache, verified via command line that php-mcrypt.x86_64 was installed and running but Joomla continued to issue the red warning. I completed the installation successfully despite this warning and Joomla is running fine. But impossible to install Solidres, I installed Joomla only to use Solidres, but no success, this is frustrating, sorry.
4. I have seen in table cabo_assets a field with length 5120:
rules varchar(5120)
4.1 As per several pages in the web this is too long.
dba.stackexchange.com/questions/28219/sq...ified-key-was-too-lo
stackoverflow.com/questions/1814532/1071...-length-is-767-bytes
I do not know what to do, and I spent 2 full days trying to install Solidres.
Any help is very much appreciated.
Thanks and regards
joejac
1.- I reinstalled Joomla with Carset: utf8mb4 Collation: utf8mb4_unicode_ci same problem
2.- I changed all tables and db to MyISAM and restarted MySQL, except these ones:
On these I got:
So these 9 tables still have InnoDB
I have other 2 that has MEMORY type
cabo_finder_tokens MEMORY
cabo_finder_tokens_aggregate MEMORY
The rest are now MyISAM
3.- During the installation Joomla gave a warning that Mcrypt module was not present I installed restarted Apache, verified via command line that php-mcrypt.x86_64 was installed and running but Joomla continued to issue the red warning. I completed the installation successfully despite this warning and Joomla is running fine. But impossible to install Solidres, I installed Joomla only to use Solidres, but no success, this is frustrating, sorry.
4. I have seen in table cabo_assets a field with length 5120:
rules varchar(5120)
4.1 As per several pages in the web this is too long.
dba.stackexchange.com/questions/28219/sq...ified-key-was-too-lo
stackoverflow.com/questions/1814532/1071...-length-is-767-bytes
I do not know what to do, and I spent 2 full days trying to install Solidres.
Any help is very much appreciated.
Thanks and regards
joejac
Please Log in or Create an account to join the conversation.
- vietvh
- Offline
Less
More
- Posts: 1553
7 years 9 months ago #7713
by vietvh
Replied by vietvh on topic SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes - Help please.
Hi,
Look like you are using MariaDb instead of MySQL, please make sure that you enable InnoDb plugin for your MariaDb installation:
www.chriscalender.com/tag/enable-innodb-plugin-in-mariadb/
Regards,
Look like you are using MariaDb instead of MySQL, please make sure that you enable InnoDb plugin for your MariaDb installation:
www.chriscalender.com/tag/enable-innodb-plugin-in-mariadb/
Regards,
Please Log in or Create an account to join the conversation.
- joejac
- Topic Author
- Offline
Less
More
- Posts: 3
7 years 9 months ago #7718
by joejac
Replied by joejac on topic SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes - Help please.
Thank you very much vietvh,
I will try your solution on the weekend
Best regards
joejac
I will try your solution on the weekend
Best regards
joejac
Please Log in or Create an account to join the conversation.
Moderators: solidres