I want to know the whole proccess by which we can earn through mining.what happens in mining?
Mining is just popular name for "Transaction processing".
IMO it's linked to reward earned for each block and we will stop using this name after all bitcoins will be mined-out ... when the only reward for miners will be tx fee.