The magnitude 7.7 earthquake struck at midday with the epicenter not far from the city of Mandalay.