Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

heitorcto's avatar

Connection with multiple database where the second is randomic

Hi guys, today i have two connectios, first in mysql and the second in sqlite, but the second one is randomic, because is correspond an email DB, and in my server i have a folter to each mail and each mail have a connection, a new DB connection, how i can make a randomic connecion with sqlite, i think i can not use the .env settings becouse the database is not one, someone can help me.

0 likes
0 replies

Please or to participate in this conversation.