'Find a SQL instance based only on the database data file and/or log file?

I use localDB to test different solutions. Today I found that my PC had unexpectedly little space and with a quick search I found a fairly large log file that has slowly been growing over a couple of weeks.

I need to manage the database, but I cannot find the instance that it is connected too. Is there a way to find its SQL instance based only on the database data file and/or log file?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source