Skip to content
June 30, 2026
  • Linkedin
  • Twitter
  • Facebook
  • Youtube

Daily CyberSecurity

Zero-hour alerts. Unmatched analysis.

Primary Menu
  • Home
  • CVE Watchtower
  • Cyber Criminals
  • Data Leak
  • Linux
  • Malware
  • Vulnerability
  • Submit Press Release
  • Vulnerability Report
Light/Dark Button
  • Home
  • Technique
  • Exporting mysql data using mysqldump
  • Technique

Exporting mysql data using mysqldump

Do Son June 25, 2017 1 minute read
mysqldump

The mysqldump client utility performs logical backups, producing a set of SQL statements that can be executed to reproduce the original database object definitions and table data. It dumps one or more MySQL databases for backup or transfer to another SQL server. The mysqldump command can also generate output in CSV, other delimited text, or XML format.

mysqldump requires at least the SELECT privilege for dumped tables, SHOW VIEW for dumped views, TRIGGER for dumped triggers, and LOCK TABLES if the –single-transaction option is not used. Certain options might require other privileges as noted in the option descriptions.

  • Export a complete database backup:
    mysqldump -h 127.0.0.1 -P 3306 -u root -ppassword --add-locks -q dbname > dbname.sql

     

     

  • Export the complete database table structure
    mysqldump -h 127.0.0.1 -P 3306 -u root -p password --add-locks -q -d dbname > dbname.sql

     

     

  • Export the complete database data without table structure
    mysqldump -h127.0.0.1 -P3306 -uroot -ppassword --add-locks -q -t dbname.user > dbname.sql

     

     

     

     

 

Share this article:

Facebook Post LinkedIn Telegram
Tags: mysql mysqldump

Search

Translation

CVE WATCHTOWER
🚨

Receive alerts for vulnerabilities being exploited in the wild.

⚡

Get notified instantly when a Proof of Concept (PoC) exploit is published.

🔍

Access critical info on vulnerabilities even when marked as "RESERVED".

🧠

Insights powered by decades of expertise and global intelligence sources.

🎯

Customize alerts with up to 10 keywords for your specific tech stack.

📊

Export the raw CVE database for SIEM integration and reporting.

Upgrade Package

🚨 Active Exploits in the Wild

  • CVE-2026-48558CVSS 10.0
    SimpleHelp versions 5.5.15 and prior and 6.0 pre-release versions contain an authentication bypass vulnerability in the OIDC authentication...
    Admin intelCISA KEV📅 Added to KEV: Jun 29, 2026📅 Updated: Jun 29, 2026
  • CVE-2026-46817CVSS 9.8
    Vulnerability in the Oracle Payments product of Oracle E-Business Suite (component: File Transmission). Supported versions that are affected...
    Admin intel📅 Updated: Jun 29, 2026
  • CVE-2026-28496CVSS 9.4
    FOSSBilling is a free, open-source billing and client management system. Versions prior to 0.8.0 have a Server-Side Template...
    Admin intel📅 Updated: Jun 25, 2026
  • CVE-2026-12569
    A critical remote code execution (RCE) vulnerability has been reported in PTC Windchill PDMlink and PTC FlexPLM. The...
    CISA KEV📅 Added to KEV: Jun 25, 2026
  • CVE-2025-67038CVSS 9.8
    An issue was discovered in Lantronix EDS5000 2.1.0.0R3. The HTTP RPC module executes a shell command to write...
    CISA KEV📅 Added to KEV: Jun 23, 2026
  • CVE-2026-34908CVSS 10.0
    A malicious actor with access to the network could exploit an Improper Access Control vulnerability found in UniFi...
    CISA KEV📅 Added to KEV: Jun 23, 2026
  • CVE-2026-34909CVSS 10.0
    A malicious actor with access to the network could exploit a Path Traversal vulnerability found in UniFi OS...
    CISA KEV📅 Added to KEV: Jun 23, 2026
  • CVE-2026-34910CVSS 10.0
    A malicious actor with access to the network could exploit an Improper Input Validation vulnerability found in UniFi...
    CISA KEV📅 Added to KEV: Jun 23, 2026
Powered by CVE Watchtower

🔴 Live Critical Threats

  • CVE-2026-48315CVSS 9.3
    ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Input...
  • CVE-2026-48313CVSS 9.3
    ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Limitation...
  • CVE-2026-48286CVSS 10.0
    Adobe Campaign Classic (ACC) versions 7.4.3 build 9396 and earlier are affected...
  • CVE-2026-48283CVSS 10.0
    ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Unrestricted Upload...
  • CVE-2026-48282CVSS 10.0
    ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Limitation...
  • CVE-2026-48281CVSS 10.0
    ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Input...
  • CVE-2026-48277CVSS 10.0
    ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Input...
  • CVE-2026-48276CVSS 10.0
    ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Unrestricted Upload...
  • CVE-2026-58172CVSS 9.1
    Ocelot through 24.1.0, fixed in commit f156fd4, contains a security control bypass...
  • CVE-2026-58166CVSS 9.1
    OpenBMB ChatDev through 2.2.0, fixed in commit 4fd4da6, contains a path traversal...
Powered by CVE WATCHTOWER

Our Websites
  • Penetration Testing Tools
  • The Daily Information Technology
  • Daily CyberSecurity

    • About SecurityOnline.info
    • Advertise with us
    • Announcement
    • Contact
    • Contributor Register
    • Login
    • About SecurityOnline.info
    • Advertise on SecurityOnline.info
    • Contact Us

    When you purchase through links on our site, we may earn an affiliate commission. Here’s how it works

    • Disclaimer
    • Privacy Policy
    • DMCA NOTICE
    • Linkedin
    • Twitter
    • Facebook
    • Youtube
    © 2017 - 2026 Daily CyberSecurity. All Rights Reserved.