Solved

How to dump all databases via mysqldump?

Posted on 2008-06-19
5
680 Views
Last Modified: 2012-08-13
How to dump all databases via mysqldump in Windows XP?
I tried
mysqldump -A -h 10.123.123.12 -u username -p > full_database.sql

Why this command only dump the table structure but not the data (record)?

How can I dump everything then?
0
Comment
Question by:mawingho
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 16

Expert Comment

by:DrNikon224
ID: 21828336
Couple questions:
1. What version of MySql is your server running?
2. How are you verifying the contents of the dumped file? Seeing an incomplete import on a second server? Opening the dump file in a text editor on your dektop?
3. If you're opening the text file and viewing the contents, are you seeing all of the CREATE TABLE statements, or just the first one?
4. Have you tried running mysqldump using the --result-file=full_database.sql (or -r full_database.sql) options to mysqldump to ensure your line endings will play properly with your Windows system (assuming the target destination for the dumped file is indeed a Windows machine)?
5. Have you checked the source database to verify there is data to be dumped? (have to ask...)
0
 

Author Comment

by:mawingho
ID: 21828345
Server version: 4.0.21-standard

Only have something like this is the file
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `fibrecut`;

USE `fibrecut`;

--
-- Current Database: `hub`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `hub`;

USE `hub`;

yes, there is data to be dumped.
0
 
LVL 16

Accepted Solution

by:
DrNikon224 earned 500 total points
ID: 21828374
Does the account with which you're connecting to the server have access to *all* the data you're trying to dump? Can you connect to the server manually through the command line and run SELECT queries on tables in `fibrecut` or `hub`?
0
 

Author Comment

by:mawingho
ID: 21828760
yes, I can
0
 
LVL 16

Expert Comment

by:DrNikon224
ID: 21829698
Curious - what was the resolution?
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question