How to find/calculate correlation in a dataset which has categorical as well as continuous variables?

I am working on a use case wherein dataset has categorical as well and continuous variables.
How do we find correlation in such database and identify the significant variables which we can then
use as predictor variables for logistic regression?