How to point the OPenEMR to a different database

My application is pointing to my development database and I want to point it to my test database. Can you please let me know where to find the configuration file to make the change,

Thanks

Please backup your production / development database first before trying this!!!

I think you can do this in a couple of ways:

  1. Edit the sqlconf.php file in the “…openemr/sites/default/” directory . Change the database name, username and password there to point to the test database.
  2. Perhaps you can clone the “default” directory under the “sites” directory to a new name say “test”. Now edit the sqlconf.php in this "test"directory as above. Now on the browser login page, edit the address bar “…login/login.php?site=default” to “…?site=test”

That should do it I think.
Let me know

Thank you Parag, Let me give it a try.