Switching to production, db connection still points to entry in dev environment

In my dev have a direct db connection setup that works, server is localhost. In production the web server and db server aren’t the same server.

I switch the target to my production target. Click on Database manager and select the only entry. Click the button “Direct Database Connect…”. It has the server by IP. Click test, it works.

Hit the publish button and when i try to visit the the production version:

  "code": 1698,
  "file": "/var/www/clients/client3/web32/web/dmxConnectLib/lib/db/Connection.php",
  "line": 105,
  "message": "SQLSTATE[HY000] [1698] Access denied for user 'dbuser'@'localhost'",

Notice the @localhost, that only exists on the dev target. Not the production.

wappler 5.8.2 php project

Found my answer.

Globals has settings that aren’t tied to the database manager.