A magnitude 5.0 earthquake struck Dalian city in China's northeastern Liaoning province Wednesday afternoon, the China Earthquake Networks Center (CENC) said.