YOGYAKARTA, Indonesia (AP) -- A powerful earthquake flattened homes and hotels in central Indonesia on Saturday as people slept, killing at least 3,000 and injuring thousands more in the nation's worst disaster since the 2004 tsunami.
The magnitude-6.2 quake struck at 5:54 a.m. near the ancient city of Yogyakarta, 250 miles east of the capital, Jakarta. Thousands of panicked residents fled into the streets, and some feared a tsunami would strike. Hospitals were overwhelmed with victims.
The quake's epicenter was 50 miles south of the rumbling Mount Merapi volcano, and activity increased soon after the temblor. A large burst spewed hot clouds and sent debris cascading some two miles down its western flank.
Bambang Dwiyanto of the Energy and Mineral Ministry could not say whether the quake caused the volcanic activity but warned that it could trigger a larger eruption.
''It will influence the activities of Mount Merapi, particularly in the lava dome,'' said Dwiyanto, head of the ministry's geological division.
Anthony Guarino of the CalTech Seismological Laboratory in Pasadena, Calif., said Indonesia has the second-highest number of erupted volcanos in historic time, outside of Japan. It has the largest number of volcanos in world -- 76.
Almost all people had already been evacuated away from the volcano's danger zone, and there were no reports of injuries as a result of the eruption.
Indonesia, the world's largest archipelago, is prone to seismic upheaval due to its location on the so-called Pacific ''Ring of Fire,'' an arc of volcanos and fault lines encircling the Pacific Basin.
Saturday's quake was centered about six miles below the surface, the U.S. Geological Survey said.
The strong quake knocked down houses, hotels, a hospital and government buildings, sending hysterical people running into the streets. Many roads and bridges were destroyed, hindering efforts to get taxis and pickup trucks filled with wounded to packed hospitals.
In the hardest-hit district of Bantul, rescuers tried to pull bodies from the rubble as residents started digging mass graves.
Rows of corpses awaited burial beneath a blazing sun, with village heads recording their names so they could be added to the official death toll.
Subarjo, a 70-year-old food vendor, sobbed next to his dead wife, his house destroyed.
''I couldn't help my wife ... I was trying to rescue my children, one with a broken leg, and then the house collapsed,'' he said. ''I have to accept this as our destiny, as God's will.''
President Susilo Bambang Yudhoyono ordered the army to help evacuate victims and arrived in densely populated Central Java province Saturday afternoon with a team of Cabinet ministers to oversee rescue operations. He also told people not to fear a tsunami.
Sixteen hours after the quake struck, the number of dead stood at 3,068, Social Affairs Ministry official Sopar Jaya said, adding that two-thirds of the fatalities occurred in devastated Bantul.
''The numbers just keep rising,'' said Arifin Muhadi of the Indonesian Red Cross, adding that more than 3,400 people were hurt.
U.S. Embassy spokesman Max Kwak said he did not know of any American casualties, adding that the United States was donating $100,000 for search-and-rescue efforts and emergency care.
Yogyakarta is about 18 miles from the sea. In the chaos that followed the quake, false rumors of an impending tsunami sent thousands of people fleeing to higher ground in cars and on motorbikes.
The city is 1,390 miles southeast of Aceh province, where 131,000 people died in a December 2004 tsunami triggered by a 9.1-magnitude earthquake under the sea.
Civilians carried bloodied survivors, including children, into hospitals, sometimes jumping off flatbed trucks used in construction. Large cracks crisscrossed some roads, while others had collapsed.
The quake cut electricity and phone lines in some areas.
Doctors were coming into the region from other parts of the country. Japan also said it was sending a seven-person medical team, relief goods and financial aid, the Foreign Ministry said.
Neighboring Malaysia said it will send a 56-member search team, doctors and medical supplies, and the European Commission said it would release up to $3.8 million in emergency aid.
The World Food Program was sending in a plane carrying 2 tons of medicine and eight truckloads of fortified noodles and biscuits, agency spokeswoman Brenda Barton said in Rome.
The Italian government also prepared a plane loaded with 27 tons of tents, blankets, water purifiers, electric generators and other aid, the Foreign Ministry said.
UNICEF is sending 9,000 tarpaulins and 2,000 tents to shelter those left homeless, spokesman John Budd told CNN. The agency also is sending health kits and hygiene kits, he said.
Budd said a hospital and several health clinics had collapsed, and about 4,000 houses were destroyed.
Medical teams struggled to care for the injured, hundreds of whom were lying on plastic sheets, straw mats and even newspapers outside the overcrowded hospitals, some hooked to intravenous drips dangling from trees.
Relatives read verses of the Quran to the injured.
''We need help here,'' said Kusmarwanto of Bantul Muhammadiyah Hospital, the closest hospital to the quake's epicenter, adding that his hospital alone had 39 bodies.
At nearby Dr. Sardjito Hospital, health officials tallied 60 dead, but more bodies were lined up in the hallway and some family members were taking them home before they could be added to the official toll.
''We have hundreds of injured people, our emergency care unit is overwhelmed,'' Heru Nugroho said.
The quake cracked the runway at the airport in Yogyakarta, closing it to aircraft until at least Sunday while inspections take place, Transport Minister Hatta Radjasa said.
The city is home to the 7th century Borobudur Buddhist temple, one of the world's largest. Officials did not immediately know if it was affected in the quake.
Nearby Prambanan, a spectacular Hindu temple to the southeast, suffered some damage but it was not immediately clear how much.
shit.. why does this shit have to happen almost every day..