Welcome to the WSO2 Identity Server source code! For info on working with the WSO2 Identity Server repository and contributing code, click the link below.
Mysql version : MySQL Server 8.0.19-1debian9
DB Script: wso2is-5.10.0-alpha3-SNAPSHOT/dbscripts/identity
Tested and Create Database with ;
CREATE DATABASE mydb CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE DATABASE mydb CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE DATABASE mydb CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci;
CREATE DATABASE mydb;
CREATE DATABASE mydb CHARACTER SET utf8mb4;
created databases with above queries and got the error while executing wso2is-5.10.0-alpha3-SNAPSHOT/dbscripts/identity/mysql.sql below mentioned
Error:
CREATE TABLE IF NOT EXISTS IDN_PASSWORD_HISTORY_DATA ( ID INTEGER NOT NULL AUTO_INCREMENT, USER_NAME VARCHAR(255) NOT NULL, USER_DOMAIN VARCHAR(127) NOT NULL, TENANT_ID INTEGER DEFAULT -1, SALT_VALUE VARCHAR(255), HASH VARCHAR(255) NOT NULL, TIME_CREATED TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY(ID), UNIQUE (USER_NAME,USER_DOMAIN,TENANT_ID,SALT_VALUE,HASH) )ENGINE INNODB
Error Code: 1071. Specified key was too long; max key length is 3072 bytes
Mysql version : MySQL Server 8.0.19-1debian9 DB Script: wso2is-5.10.0-alpha3-SNAPSHOT/dbscripts/identity
Tested and Create Database with ;
CREATE DATABASE mydb CHARACTER SET utf8mb4;
created databases with above queries and got the error while executing wso2is-5.10.0-alpha3-SNAPSHOT/dbscripts/identity/mysql.sql below mentioned Error:
CREATE TABLE IF NOT EXISTS IDN_PASSWORD_HISTORY_DATA ( ID INTEGER NOT NULL AUTO_INCREMENT, USER_NAME VARCHAR(255) NOT NULL, USER_DOMAIN VARCHAR(127) NOT NULL, TENANT_ID INTEGER DEFAULT -1, SALT_VALUE VARCHAR(255), HASH VARCHAR(255) NOT NULL, TIME_CREATED TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY(ID), UNIQUE (USER_NAME,USER_DOMAIN,TENANT_ID,SALT_VALUE,HASH) )ENGINE INNODB Error Code: 1071. Specified key was too long; max key length is 3072 bytes