?
Solved

How to dump all databases via mysqldump?

Posted on 2008-06-19
5
Medium Priority
?
681 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 2000 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
In this blog post, we’ll look at how using thread_statistics can cause high memory usage.
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…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

762 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