mongo-php-driver: mongoc-init.c:117 _mongoc_do_init(): precondition failed: status == SASL_OK
issue https://github.com/mongodb/mongo-php-driver/issues/677#issuecomment-366430775
windows 10 x64
- download http://windows.php.net/downloads/releases/php-7.1.14-Win32-VC14-x64.zip (thread safe)
- download http://windows.php.net/downloads/pecl/releases/mongodb/1.3.4/php_mongodb-1.3.4-7.1-ts-vc14-x64.zip or http://windows.php.net/downloads/pecl/releases/mongodb/1.4.0/php_mongodb-1.4.0-7.1-ts-vc14-x64.zip (any 1.3.* or 1.4.0 release).
- unpack
php-7.1.14-Win32-VC14-x64.zip
- unpack
php_mongodb
extension and movephp_mongodb.dll
intoext
directory. - rename
php.ini-development
intophp.ini
- uncomment
extension_dir = "ext"
- add
extension=php_mongodb.dll
- execute
php -v
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (7 by maintainers)
Commits related to this issue
- Create appveyor.yml test for https://github.com/mongodb/mongo-php-driver/issues/763 — committed to Gemorroj/mongo-php-driver by Gemorroj 6 years ago
The problem isn’t reproduced at me any more. I don’t quite understand why. Maybe because I updated the drivers. Or there were some Windows updates… In any case, this is probably the problem of my operating system and not the drivers mongodb or sasl.