Skip to content

ModuleStartException: Specified key was too long; max key length is 767 bytes #5113

Closed
@tianfuhou

Description

@tianfuhou

Please answer these questions before submitting your issue.

    • Why do you submit this issue?
    • Question or discussion
    • [+] Bug
    • Requirement
    • Feature or performance improvement

Question

  • What do you want to know?
    怎么初始化mysql数据库?创建数据库的时候,应该指定哪种字符集?

Bug

  • Which version of SkyWalking, OS and JRE?
    skywalking 8.0.1

  • Which company or project?

  • What happen?
    If possible, provide a way for reproducing the error. e.g. demo application, component version.

./oapServiceInit.sh 初始化myql 报如下错误:
2020-07-17 10:07:31,855 - org.apache.skywalking.oap.server.core.storage.model.ModelInstaller - 54 [main] INFO [] - table: alarm_record does not exist
2020-07-17 10:07:31,897 - org.apache.skywalking.oap.server.starter.OAPServerBootstrap - 57 [main] ERROR [] - Specified key was too long; max key length is 767 bytes


Requirement or improvement

  • Please describe about your requirements or improvement suggestions.

Activity

wu-sheng

wu-sheng commented on Jul 17, 2020

@wu-sheng
Member

English onlyl

Georege

Georege commented on Apr 20, 2021

@Georege

drop database if exists k8s_skywalking;
CREATE DATABASE IF NOT EXISTS k8s_skywalking DEFAULT CHARSET latin1 COLLATE latin1_general_ci;

rainbowsky911

rainbowsky911 commented on Jun 19, 2021

@rainbowsky911

drop database if exists k8s_skywalking;
CREATE DATABASE IF NOT EXISTS k8s_skywalking DEFAULT CHARSET latin1 COLLATE latin1_general_ci;

666

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @wu-sheng@rainbowsky911@tianfuhou@Georege

        Issue actions

          ModuleStartException: Specified key was too long; max key length is 767 bytes · Issue #5113 · apache/skywalking