Database migration

I have a big problem
anyone can help me?
about database migration, i’m plan to split my database from localhost to another server.
I have been changed my DB configuration in config.php from localhost to my remote server IP.
After I add a device on the webui, I found that the data was still inserted into the localhost database

did you change your database host in both, config.php and .env files?

thank you bro. i didn’t change .env. i will try and give you feedback.

thank you bro. it working now.