Git Product home page Git Product logo

Comments (3)

LeeThompson avatar LeeThompson commented on August 28, 2024

I think I see the problem, it was my collation utf8mb4_unicode_ci makes name 1020 bytes internally. Might want to make sure collation is set with create database in config

from sitebar.

brablc avatar brablc commented on August 28, 2024

I'm not sure if I can help here, or you solved your problem by using shorter collation. I guess standard utf-8 should expand up to three characters so the limit would not be exceeded.

from sitebar.

timfan3939 avatar timfan3939 commented on August 28, 2024

Hi, sorry for responding to the closed issue.
I just installed sitebar today and found similar issue

Here is the error messages.

Specified key was too long; max key length is 767 bytes [ CREATE TABLE sitebar_link ( lid int(10) unsigned NOT NULL auto_increment, nid int(10) unsigned NOT NULL default '0', url text NOT NULL, name varchar(255) NOT NULL default '', private tinyint(1) default '0', comment longtext, favicon text, added datetime NOT NULL default CURRENT_TIMESTAMP, changed datetime, visited datetime, tested datetime, deleted_by int(10) unsigned default NULL, is_dead tinyint(1) NOT NULL default '0', is_feed tinyint(1) NOT NULL default '0', is_sidebar tinyint(1) NOT NULL default '0', hits int(10) unsigned NOT NULL default '0', validate tinyint(1) NOT NULL default '1', target varchar(32), type varchar(10) DEFAULT '', PRIMARY KEY (lid), UNIQUE KEY name (nid,name) ) COMMENT='Each link must belong to a node.']

Specified key was too long; max key length is 767 bytes [ CREATE TABLE sitebar_node ( nid int(10) unsigned NOT NULL auto_increment, nid_parent int(10) unsigned NOT NULL DEFAULT '0', name varchar(255) NOT NULL DEFAULT '', comment text, sort_mode char(10) DEFAULT 'user', custom_order text, type varchar(10) DEFAULT '', deleted_by int(10) unsigned DEFAULT NULL, PRIMARY KEY (nid), UNIQUE KEY name (nid_parent,name), KEY pnid (nid_parent) ) COMMENT='Node contains other nodes and links.']

Specified key was too long; max key length is 767 bytes [ CREATE TABLE sitebar_cache ( type varchar(10) NOT NULL, ckey varchar(255) NOT NULL, cvalue LONGBLOB NOT NULL, created datetime NOT NULL default CURRENT_TIMESTAMP, expires datetime, PRIMARY KEY (type, ckey) ) COMMENT='Contains multipurpose cache.']

Specified key was too long; max key length is 767 bytes [ CREATE TABLE sitebar_data ( type varchar(10) NOT NULL, dkey varchar(255) NOT NULL, dvalue LONGBLOB NOT NULL, PRIMARY KEY (type, dkey) ) COMMENT='Offers multipurpose data storage space.']

Specified key was too long; max key length is 767 bytes [ CREATE TABLE sitebar_user_data ( type varchar(10) NOT NULL, uid int(10) unsigned NOT NULL, dkey varchar(255) NOT NULL, dvalue LONGBLOB NOT NULL, PRIMARY KEY (type, uid, dkey) ) COMMENT='Offers multipurpose user data storage space.']

Table 'sitebar.sitebar_node' doesn't exist [ INSERT INTO sitebar_node (nid,nid_parent,name,comment) VALUES (1, 0, 'Admin Bookmarks', 'Bookmarks of SiteBar Administrators')]

Table 'sitebar.sitebar_node' doesn't exist [ INSERT INTO sitebar_node (nid,nid_parent,name,comment) VALUES (2, 0, 'Public Bookmarks', NULL)]

Table 'sitebar.sitebar_node' doesn't exist [ INSERT INTO sitebar_node (nid,nid_parent,name,comment, sort_mode) VALUES (3, 2, 'SiteBar Project', 'Bookmarks related to the SiteBar open source project.', 'custom')]

Table 'sitebar.sitebar_node' doesn't exist [ INSERT INTO sitebar_node (nid,nid_parent,name,comment, sort_mode) VALUES (4, 2, 'Web Search', 'Type a search term in the toolbar and click on one of the links to search this term using that search engine. Using the SiteBar Sidebar Extension for Mozilla Firefox you can middle click on the folder to search all engines each in its own tab.', 'custom')]

The solution would be adding "ENGINE=InnoDB DEFAULT CHARSET=UTF8" to the end of the "CREATE TABLE" statements

I hope this would help.

from sitebar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.