Switch beetwen local DB server and remote DB server

Hi I just wanted to know what are the easy steps to switch cyberpanel to use remote mariadb server?
Currently I have installed it with local db server but just wonderin to offload my database server for testing purposes.

Also on some point need to switch back to local db server if needed.