When running new installation after entering DB credentials I get error:
"Permission denied: Superadmin Only"
Installer does not continue. Running on Apache2, PHP 7.2 and Ubuntu 18.
Is this the first project you're installing? Do you have an __api.json file in the config folder?
Same issue. Making a new install with a newly created MySQL DB.
First I get an error saying SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

If I click install button for the second time I get Permission denied: Superadmin Only

I have __api.json file in the config folder. And when I check the DB structure I can see Directus tables:

But I can't bypass the "Database Connection" step.
If I refresh the page it asks for a super-admin password and restarts new project creation flow.
Environment:

I'm getting the same thing with GoDaddy:
 if I go to home i get Statement could not be executed (42S02 - 1146 - Table 'lab-d1-1.directus_settings' doesn't exist)
the database has been poplulated with these tables:

shared hosting. Running PHP 7.4
Also seeing this error after getting the max key length error. Stuck at same point as mukhortov and lolmos. __api.json file does exist in config folder with superadmin token.
Same issue. It's because of MariaDB
I found a way.
Edit this file : /src/core/Directus/Util/Installation/stubs/config.stub
Change utf8mb4 to utf8
Remove all files in /config
Restart install
Same issue after the above changes. Not running MariaDB.
This article on Stack Overflow describes the issue in my case. Running MySQL 5.6. No option to upgrade in my case as I'm on shared hosting.
have MySQL version 5.6.47-cll-lve. Have tried the change suggested by @ricoxor to no avail.
I got it working on my installation:
Open this file: migrations\install\20180220023152_create_collections_presets_table.php
Change line 15 from 'limit' => 255 to 'limit' => 190
The total key length has to be below 255 characters on MySQL 5.6. I also changed the collation on all tables and columns to utf8_general_ci.
Worked for me. Thanks, @LesterLogic! 馃檶
thanks @LesterLogic this works for me too!!
@LesterLogic awesome thanks for sharing this!
@LesterLogic Thanks for sharing that. Helped us to! 馃檹
Most helpful comment
I got it working on my installation:
Open this file: migrations\install\20180220023152_create_collections_presets_table.php
Change line 15 from
'limit' => 255to'limit' => 190The total key length has to be below 255 characters on MySQL 5.6. I also changed the collation on all tables and columns to utf8_general_ci.