Opening Account explaination

I am unable to understand opening journal entry or maybe misunderstanding its concept. I want to set cash account according to company balance so when I create an opening entry it sets both debit credit equal and balance is zero, but I want credit to be zero and debit and balance equal, can someone explain?