How can we access the shared database connection in another project?

I have created a shared database connection for one project, but when I switch the project, I am not able to see the same db connection in another project, how can we access the same connection in another project as well?