Open m6a-UdS opened 6 years ago
users might need to throw in innodb_default_row_format (supported starting 5.7.9). I am using:
containers:
This could probably be avoided if the database is created with a default character set:
CREATE DATABASE kolide CHARACTER SET utf8 COLLATE utf8_general_ci;
Alternatively migrations could include character set and collation in CREATE TABLE statements.
What version of
fleet
are you using (fleet version --full
)?What operating system are you using?
The
kolide/fleet
docker container from DockerHub (Alpine)What did you do?
Initialize a database using a default/empty MySQL AWS RDS (instance class db.t2.micro).
What did you expect to see?
The database getting initialized.
What did you see instead?
An error message:
Error 1071: Specified key was too long; max key length is 767 bytes), quitting migration.
A general solution for users getting this problem is to activate
innodb-large-prefix
and setinnodb_file_format
to Barracuda. A work-around if you are not admin on your database server is to dump the initial database from a working initial installation, replace allutf8mb4
tables forutf8
and restore it to the destination server. It did work for me, but I would not recommend since this method has not been tested properly.This limitation might not need any fix, but could be documented.