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
Solved

How to dump all databases via mysqldump?

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need help constructing a conditional update query 16 71
MS SQL Server COnditional Where statement 7 85
MYSQL responding very slow 3 23
check mysql insert 12 27
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Read about achieving the basic levels of HRIS security in the workplace.
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…

829 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