[mysql] Database name isn't read from url
See original GitHub issueIssue type:
[x] question
Database system/driver:
[x] mysql
/ mariadb
TypeORM version:
[x] latest
Question:
Hello,
I use mysql url connection string, but I get error:
Option "database" is not set in your connection options, please define "database" option in your connection options or ormconfig.json
When i add database
property to connection options everything is fine, but why database name can’t be read from url? My url:
mysql://username:password@host:port/database
I think that database should be reads from url when it’s defined. What do you think?
Update:
I’m not sure, but I think is bug, becouse when I debug connection I see that database name i corectly read from url, but error is throw by EntityMetadataValidator
which not found database options in EntityMetadata
.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:9
- Comments:15 (5 by maintainers)
Top GitHub Comments
Still not fixed in v0.2.22
I think it’s not fixed, happening to me on
v0.2.13
.