I found a solution:
For mariadb, update your *my.cnf file with following configuration,
innodb_default_row_format=dynamic
innodb_file_format=barracuda
innodb_file_per_table=true
innodb_large_prefix=true
Then, you have to restart mariadb service for updated configuration to take effect.