This common problem mostly occurs because by default MySql uses character limit for column names. Which is:
INNODB utf8mb4 VARCHAR(191)
What we need is given below:
INNODB utf8 VARCHAR(255)
To get rid of this issue, I would suggest to use utf8 while creating database along with COLLATE set to utf8_general_ci. I prefer to use below command to create database in MariaDb or MySql:
DROP DATABASE IF EXISTS <YOUR_DATABASE_NAME>;
CREATE DATABASE <YOUR_DATABAE_NAME> DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
Above command helped me in my specific scenario. I use 'Sequelize' to create tables on run time. When I tried to run my code in Ubuntu after creating database with simple 'CREATE DATABASE ' command, I got this 1071 error.
Running above command with utf8 character set and collate helped me get rid of the error.