Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7885583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:06:32+00:00 2026-06-03T05:06:32+00:00

A mysqldump command like the following: mysqldump -u<username> -p<password> -h<remote_db_host> -T<target_directory> <db_name> –fields-terminated-by=, will

  • 0

A mysqldump command like the following:

mysqldump -u<username> -p<password> -h<remote_db_host> -T<target_directory> <db_name> --fields-terminated-by=,

will write out two files for each table (one is the schema, the other is CSV table data). To get CSV output you must specify a target directory (with -T). When -T is passed to mysqldump, it writes the data to the filesystem of the server where mysqld is running – NOT the system where the command is issued.
Is there an easy way to dump CSV files from a remote system ?

Note: I am familiar with using a simple mysqldump and handling the STDOUT output, but I don’t know of a way to get CSV table data that way without doing some substantial parsing. In this case I will use the -X option and dump xml.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T05:06:33+00:00Added an answer on June 3, 2026 at 5:06 am
    mysql -h remote_host -e "SELECT * FROM my_schema.my_table" --batch --silent > my_file.csv
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like execute the following command with Java: C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqldump -u
tmp-file contains: database_1 database_2 database_3 I want to run a command like mysqldump DATABASE
How can I run the following command using subprocess.Popen ? mysqldump database_name table_name |
I would like to know the command to perform a mysqldump of a database
I made a backup of my_database like this: mysqldump --add-drop-database --databases --user=my_username --password=my_password my_database
I am running a command on the remote machine: remote_output = run('mysqldump --no-data --user=username
I'm trying to restore/import a MySQLdump file using the following command (on Windows, version
I back up my production database with the following command: mysqldump -u root --opt
I use the following command to output the schema for a MySQL db: mysqldump
When I run a mysqldump command on my database and then try to import

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.