[MySQL] Dump Database


For an entire database:
> mysqldump --all database_name > dump.txt
And then on your new database server (if it's different):
> mysqladmin create database_name
> mysql database_name < dump.txt

For a single table only:
> mysqldump --all database_name table_name > dump.txt
And then on your new database server (if it's different):
> mysql database_name < dump.txt

 

Ref :  http://www.experts-exchange.com/Databases/Mysql/Q_20973316.html

 

คำสำคัญ (Tags): #mysql#howto#dump
หมายเลขบันทึก: 53835เขียนเมื่อ 8 ตุลาคม 2006 20:06 น. ()แก้ไขเมื่อ 25 มีนาคม 2012 15:30 น. ()สัญญาอนุญาต: จำนวนที่อ่านจำนวนที่อ่าน:


ความเห็น (0)

ไม่มีความเห็น

พบปัญหาการใช้งานกรุณาแจ้ง LINE ID @gotoknow
ClassStart
ระบบจัดการการเรียนการสอนผ่านอินเทอร์เน็ต
ทั้งเว็บทั้งแอปใช้งานฟรี
ClassStart Books
โครงการหนังสือจากคลาสสตาร์ท