Site attempting to use DB it doesn't know about!

  • | 151 points

    Ok, this is a strange issue, with an uncommon setup.

    Setup is comprised of multiple sites:

    1. An API
    2. Frontends that use that API

    The issue being, whenever the FrontEnd site, makes a call to an API endpoint.
    The API errors, attempting to access its DB tables, using the Frontends Database name!

    The API codebase has no reference to that database name, which only appears in the Frontend's environment settings.

    The API accesses its database tables correctly via Command line or direct web action!
    It's only when both are running via Laragon together, does this issue appear!

    Any ideas or suggestions?

Log in to reply

Looks like your connection to Laragon was lost, please wait while we try to reconnect.