Skip to content
June 10, 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

Related posts:

  1. Ddostf DDoS Bot Exploits Vulnerabilities: MySQL Servers at Risk
  2. CVE-2023-49954: Critical SQL Injection Vulnerability in 3CX CRM Integration
  3. CVE-2024-27295: Directus Flaw Opens Door to Account Takeovers
  4. CVE-2025-26701 (CVSS 10): Percona PMM OVA Users at Risk of Unauthorized Access
  5. MySQL Servers Under Attack: Threat Actors Exploiting UDFs to Inject Gh0stRAT, XWorm & Zoho Agents
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

🔴 Live Critical Threats

  • CVE-2026-45328CVSS 9.3
    ESF-IDF is the Espressif Internet of Things (IOT) Development Framework. In versions...
  • CVE-2026-48030CVSS 9.9
    ### Summary An OS Command Injection vulnerability in the terminal action handler...
  • CVE-2026-48303CVSS 10.0
    Adobe Campaign Classic (ACC) versions 7.4.3 build 9394 and earlier are affected...
  • CVE-2026-47938CVSS 10.0
    Adobe Campaign Classic (ACC) versions 7.4.3 build 9394 and earlier are affected...
  • CVE-2026-47928CVSS 9.6
    ColdFusion versions 2023.19, 2025.8 and earlier are affected by an Improper Input...
  • CVE-2026-30141CVSS 9.8
    An issue was discovered in bitbank2 AnimatedGIF v2.2.0. A buffer overflow in...
  • CVE-2026-10045CVSS 9.8
    Shenzhen Kangda Xin Intelligent Network Technology Company's router, model DR300, version 2.1.2.121,...
  • CVE-2026-34691CVSS 9.3
    Adobe Experience Manager Forms JEE versions LTS SP1, 6.5.24.0 and earlier are...
  • CVE-2026-49841CVSS 9.8
    FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from...
  • CVE-2026-49840CVSS 9.1
    FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from...
Powered by CVE WATCHTOWER

Recent Zero-Day Vulnerabilities

  • Check Point VPN Vulnerability Exploited in the Wild with Ransomware Links
  • Weekly Threat Intelligence: June 1 to June 7, 2026
  • Cisco SD-WAN Vulnerability Exploited in the Wild with Root RCE Risks
  • Android Zero-Day Flaw Exploited in the Wild: June 2026 Patches Released
  • Exploited in the Wild: Critical OWA Spoofing Flaw (CVE-2026-42897) Hits On-Premises Exchange Servers
  • Exploited in the Wild: Maximum CVSS 10 SD-WAN Flaw (CVE-2026-20182) Grants Admin Control
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.