Giter Site home page Giter Site logo

Comments (6)

jenssegers avatar jenssegers commented on August 15, 2024

Are you able to connect to your server using the regular PHP client? http://www.php.net/manual/en/class.mongoclient.php

from laravel-mongodb.

freak4pc avatar freak4pc commented on August 15, 2024

Hey Jens,
Sorry it took 2 days to answer - Was away on vacation.

It does seem to work with a normal PHP client connection , e.g.

$mongo = new MongoClient('mongodb://root:mypassword@localhost/database');

from laravel-mongodb.

jenssegers avatar jenssegers commented on August 15, 2024

The library should generate the following connection string for your configuration (https://github.com/jenssegers/Laravel-MongoDB/blob/master/src/Jenssegers/Mongodb/Connection.php#L94):

mongodb://root:mypassword@localhost:27017/vbtest

from laravel-mongodb.

freak4pc avatar freak4pc commented on August 15, 2024

That is very interesting ... I'll check up a bit more on my end. I think you can close it and If i'll have any new findings I'll share them here. Thank you!

from laravel-mongodb.

mikeziri avatar mikeziri commented on August 15, 2024

I struggled with this for a whole day...
the problem was 'localhost' did'nt work. on my system it must be '127.0.0.1'

from laravel-mongodb.

L422Y avatar L422Y commented on August 15, 2024

I fixed this by installing mongo 1.6.5 driver with pecl upgrade mongo (running MongoDB 3.0)

from laravel-mongodb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.