Skip to content

Error: Option "database" is not set in your connection options when use "url" option for connection #4691

Closed

Description

@CavidM

Issue type:

[ ] question
[x] bug report
[ ] feature request
[ ] documentation issue

Database system/driver:

[ ] cordova
[ ] mongodb
[ ] mssql
[x] mysql / mariadb
[ ] oracle
[ ] postgres
[ ] cockroachdb
[ ] sqlite
[ ] sqljs
[ ] react-native
[ ] expo

TypeORM version:

[x] latest
[ ] @next
[ ] 0.x.x (or put your version here)

Error: Option "database" is not set in your connection options, please define "database" option in your connection options or ormconfig.json

But i define "database" option in "url" option by this way: "url": "mysql://root:@localhost/myDb"

Activity

  1. pleerock commented on Sep 5, 2019

    @pleerock
    Member

    closed by #4694

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions