mysqlpump लॉजिकल बैकअप करता है: मूल डेटाबेस ऑब्जेक्ट परिभाषाओं और टेबल डेटा को पुन: पेश करने के लिए SQL स्टेटमेंट सेट जनरेट करता है।
प्रमुख विशेषताएं
- डेटाबेस और ऑब्जेक्ट का **पारलेल प्रोसेसिंग** (तेज़ डम्प)।
- डम्प करने वाले डेटाबेस/ऑब्जेक्ट (टेबल, स्टोर्ड प्रोग्राम, यूज़र अकाउंट) पर बेहतर नियंत्रण।
- यूज़र अकाउंट को
CREATE USER,GRANTस्टेटमेंट के रूप में डम्प (mysql सिस्टम DB में INSERT के बजाय)। - कम्प्रेस्ड आउटपुट बनाने की क्षमता।
- प्रोग्रेस इंडिकेटर (अनुमानित मान)।
- डम्प फ़ाइल रीलोड पर InnoDB सेकेंडरी इंडेक्स तेज़ निर्माण (पंक्तियाँ डालने के बाद इंडेक्स जोड़ता है)।
आह्वान सिंटैक्स
# सभी डेटाबेस (डिफ़ॉल्ट) shell> mysqlpump --all-databases # एकल डेटाबेस shell> mysqlpump db_name # विशिष्ट टेबल shell> mysqlpump db_name tbl_name1 tbl_name2 ... # सभी नाम आर्गुमेंट को डेटाबेस नाम मानें shell> mysqlpump --databases db_name1 db_name2 ...
रीलोड
shell> mysqlpump [options] > dump.sql shell> mysql < dump.sql
समावेश/बहिष्करण विकल्प
--include-databases, --exclude-databases, --include-tables, --exclude-tables, --include-routines, --exclude-routines, --users, --exclude-users आदि।