Hi friends,
can anyone tell me how can I read dump values from one database to another?
I can't understand the dump concept properly. can anybody explain it?
what command we have to use to dump tables?
I have to dump one large table from one database to another.
what is the command for it?
Please help me out.
Thanx n Regards
Yas...
4 1401
mysqldump is a tool to import and export MySQL databases.
It can be used to back up a database or to move database information from one server to another.
To export a database.
# mysqldump -u username -ppassword database_name > FILE.sql
Replace username, password and database_name with your MySQL username, password and database name.
Import is used to restore data from a backup or to import from another MySQL server.
Start by uploading the FILE.sql file to the server where you will be running this command.
# mysql -u username -ppassword database_name < FILE.sql
When you can use phpMyAdmin it is even simpler. Just go to the database panel and click 'Export' tab at the top.
It will prompt you for the names of the tables (or the entire database), and the extra options to generate like 'DROP' and 'IFEXISTS', whether you want to write the sql dump to screen, where you can copy and paste it, or write the dump to a file.
In the latter case, you can then transmit that file to the new database server and do exactly the opposite, i.e. go to the db panel, hit the 'Import' button, and specify the name of the dump file you made previously and run it.
Ronald
Thanks a lot.... for ur valuable replies......
I'm amazing, how easy these things are......
Thanx n Regards
Yas...
Thanks a lot.... for ur valuable replies......
I'm amazing, how easy these things are......
Thanx n Regards
Yas...
You are welcome yasmine. See my signature for an explanation of why sometimes things look difficult.
Ronald
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Mike Orb |
last post by:
Hi. I've successfully installed PHP in the past but am having problems
compiling it all of a sudden. To try to fix the problem I downloaded a
fresh copy of Apache 1.3.29 and PHP 4.3.5 and kept the config simple.
My Apache config:
../configure \
"--prefix=/usr/local/src/internet/services/apache/php/core-fix-test/http
d" \
"--enable-module=so"
|
by: fabrice |
last post by:
Hello,
I've got trouble reading a text file (event viewer dump) by using the
getline() function...
After 200 - 300 lines that are read correctly, it suddenly stops
reading the rest of the file...
Thank you to all of you who can help me with this one...
|
by: Cyril VELTER |
last post by:
I'm trying to dump a database from a 7.1.3 server to a 7.4.2 one.
It doesn't works because of difference in COPY format (unless I use -d
which is VERY slow on a 16G database).
What are the difference between the 7.1.3 and 7.4.2 formats (seems to be
related at least to newlines) ? Is it possible to modify the dump with a sed
script to make it usable by 7.4.2 ?
Thanks
|
by: Soeren Gerlach |
last post by:
Hi,
some weeks ago I started to develop an application using Postgresql the
first time. I'm running 7.4.3 on a Linux box with a plain 2.6.7 kernel, the
storage is handled by 5 SATA disks, managed by a 3ware controller and using
a xfs filesystem. The DB server is a 3 Ghz P4 with 4 Gig of Ram, so the
machine is quite fast for most purposes I need it; the DB server is a pure
DB server, theres no application running on it.
I dump and...
|
by: Allin Cottrell |
last post by:
A. Suppose my program mallocs and populates an array of structs
of a fixed size apiece. For example, something like:
struct foo {
int i;
double x;
char s;
};
We want to save this work and re-read it later. One solution
| |
by: Andrea Gavana |
last post by:
Hello NG,
that may sound a silly question, but I didn't find anything really
clear about the issue of reading unformatted big endian files with
Python. What I was doing till now, was using Fortran to read those
files and compile this Fortran extension using F2PY. Now that it seems
that no possible combinations of Fortran/C compilers actually *work*
with Python 2.4 on Windows XP, I was trying to translate the Fortran
subroutine to...
|
by: Ghostwalker |
last post by:
I'm trying to read out a file, in which some data is stored.
Format is this:
name < value > ... ;
But when I run the following code:
std::string token;
while (is >> token && token != ";")
{
|
by: Use*n*x |
last post by:
Hello,
I have a binary file (image file) and am reading 4-bytes at a time. The
File size is 63,480,320 bytes. My assumption is that if I loop through
this file reading 4 bytes at a time, I should loop 15,870,080 times.
The code is:
newprogram.cpp
=============
|
by: mthread |
last post by:
Hi,
Given below is the core dump generated from my application. The
issue is, I have compiled my code with -g option . But the core dump
show neither the file name nor line number which caused the
application crash.
Kindly let me know what might be the reason for this.
warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib/mysql/libmysqlclient.so.15...done.
Loaded symbols for...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |