-
Version
What happendOne sentence summary: When run What should I do? Is there any document can point out my mistake? when i run # wangsaiyu @ SaiyuWangPC in ~ [17:01:17]
$ kratos serve --config="/home/wangsaiyu/go/src/github.com/ory/kratos/contrib/quickstart/kratos/email-password/kratos.yml"
INFO[2021-12-18T17:01:25+08:00] No tracer configured - skipping tracing setup audience=application service_name=Ory Kratos service_version=v0.8.1-alpha.1
DEBU[2021-12-18T17:01:25+08:00] Connecting to SQL Database audience=application connMaxLifetime=0s idlePool=4 pool=20 service_name=Ory Kratos service_version=v0.8.1-alpha.1
WARN[2021-12-18T17:01:25+08:00] Unable to determine network, retrying. audience=application error=map[debug: message:Error 1146: Table 'kratos.networks' doesn't exist: Unable to locate the table reason: status:Internal Server Error status_code:500] service_name=Ory Kratos service_version=v0.8.1-alpha.1
...... And after running this, no table have been created in the database. Is
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You need to run „kratos migrate sql“ to run migrations! See „kratos help migrate sql“. |
Beta Was this translation helpful? Give feedback.
-
Init Kratos Databaseexport DSN="mysql://kratos:123456@tcp(localhost:3306)/kratos"
kratos migrate sql -e |
Beta Was this translation helpful? Give feedback.
You need to run „kratos migrate sql“ to run migrations! See „kratos help migrate sql“.