Please refer to the installing using sql server section of the installation instructions, change your connection string in the web.config to point to your database server and database name.
https://bugnet.codeplex.com/wikipage?title=Installing%20BugNET&referringTitle=Documentation
https://bugnet.codeplex.com/wikipage?title=Installing%20BugNET&referringTitle=Documentation