Solved

How to dump all databases via mysqldump?

Posted on 2008-06-19
5
675 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
  • 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now