Cannot open database SharePoint_Config

Problem: Cannot open database “SharePoint_Config” requested by the login. the login failed

Solution (just in my case): The database was a centralized db for my company, they already had SharePoint_Config db there. I need to have my own setup so I just changed it’s name to get it through.