You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This regex is only used to parse the default database name when it is not set; the work around is to simply provide a defaultDatabaseName in the configuration in config.php:
MongoDB supports SRV DSN format (https://www.mongodb.com/blog/post/mongodb-3-6-here-to-SRV-you-with-easier-replica-set-connections) since v3.6
In
yii2-mongodb/src/Connection.php
there's a regex expectingmongodb://
, whereas the new format ismongodb+srv://
, so this regex fails.The text was updated successfully, but these errors were encountered: