Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Regarding DB connection
  • Hello there,

    Is there option to make the DB connection singletone?

    Possibly, persistent option dose?

    The reason why I am asking is that I have 5 DB connections set in the config/production/db.php and some of db config creates many DB connections to database server.

    So, I am getting  max DB connection error from DB server.

    I can not increase the max DB connection because  I do not have permission to do it and so I am asking.

    Best reagards,
  • HarroHarro
    Accepted Answer
    Define what you mean by "singleton"?

    If you mean a persistent connection, you can configure that, see http://docs.fuelphp.com/classes/database/introduction.html#/configuration, just set "persistent" to true.
  • Hello there,
    Yes, I want to make it persistent connection.
    Thanks for that.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion