• Recent upgrade to 4.0 is refusing to update the database with this error “Specified key was too long; max key length is 1000 bytes”

    Any assistance will be appreciated

    • This topic was modified 2 years, 11 months ago by mcworks.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Recent upgrade to 4.0 is giving database upgrade error. The error message is
    “Specified key was too long; max key length is 767 bytes”

    Your assistance is highly appreciated

    Thanks in advance

    • This reply was modified 2 years, 11 months ago by myetutors.

    I had the same error “Specified key was too long; max key length is 1000 bytes” with 10.2.37-MariaD.
    But then I tried with MySQL 5.7.32 and the database upgrade to 4.0 went fine.

    Any help with MariaDB ?

    • This reply was modified 2 years, 11 months ago by bassory99.
    Plugin Support brianvu-tp

    (@briantp)

    Hi @myetutors @mcworks

    MySQL version older than 5.7 leads to this error. You need to update your MySQL to the newest version, and then update LearnPress 4.0 once again.
    Please read the tutorial here https://docspress.thimpress.com/upgrade-database/

    Thread Starter mcworks

    (@mcworks)

    Thanks for replies, since i’m on a shared hosting upgrading I believe is a preserve of the host.. Even so I’ve noted the SQL version is 5.7.33-cll-lve

    I have since then done it the hard way and yanked it out and installed afresh. however I now notice theming/styling issues and conflicts.

    Hi, I have the same problem.
    “Specified key was too long; max key length is 1000 bytes”

    I see on my database (from cPanel > PhpAdmin) and see that my database are:
    Database client version: libmysql – 5.6.43
    (It means 5.6 isn’t it?)

    But, I don’t know how to upgrade to 5.7.
    Any input?

    Thank you

    Updated:
    I already update mySQL to version: 10
    (10.3.28-MariaDB-cll-lve – MariaDB Server)

    But still, error when I click upgrade, still found this notification:

    Upgrade Database.
    Specified key was too long; max key length is 1000 bytes

    Please help..

    Plugin Support brianvu-tp

    (@briantp)

    Hi @mcworks @kangaviv

    LearnPress has been updated to version 4.0.1, you can update and retry the Update Database process.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Specified key was too long; max key length is 1000 bytes’ is closed to new replies.