wso2mi 7.1, mysql user_storage, first user

128 views Asked by At

I setup the mysql database user_storage, and disabled the internal api, as per stated by documentation, but... then I'm lock out because no user was created...

How do I create the first admin user at the database?

1

There are 1 answers

3
Arunan On

Please make sure you have the following configuration in your deployment.toml. Also make sure you have created the user database correctly. https://ei.docs.wso2.com/en/latest/micro-integrator/setup/databases/setting-up-MySQL/#creating-the-databases

[user_store]
type = "database"
read_only = "false"

[[datasource]]
id = "WSO2_USER_DB"
url= "jdbc:mysql://localhost:3306/userdb"
username="root"
password="root"
driver="com.mysql.jdbc.Driver"

[realm_manager]
data_source = "WSO2_USER_DB" 

[internal_apis.file_user_store]
enable = false