473,757 Members | 9,463 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to copy a database

I need to
1)Copy an entire mysql database, including table structres and data
2)install it into anotehr mysql db on another machine

How?

Or at lease direct me to net resources about this.
Jul 19 '05 #1
13 2955
Attempting to reach the Kolinahr, torjon wrote:
I need to
1)Copy an entire mysql database, including table structres and data
2)install it into anotehr mysql db on another machine

How?

Or at lease direct me to net resources about this.


I guess you are looking for mysqldump ...

--
#Peace and long life ...
Registeret Linux user #292411
Jul 19 '05 #2
On Sun, 04 Apr 2004 21:25:14 +0200, Andreas Paasch
<An*****@Paasch .Net> wrote:
Attempting to reach the Kolinahr, torjon wrote:
I need to
1)Copy an entire mysql database, including table structres and data
2)install it into anotehr mysql db on another machine

How?

Or at lease direct me to net resources about this.


I guess you are looking for mysqldump ...

--
#Peace and long life ...
Registeret Linux user #292411

I've read the docs and there's lots of info on how to dump, but not
how to restore from that dump. Do you know the syntax?

By the way, when I do a dump, what dir does the dump go to--the root
of the db?

Thanks!! ps I'm using windows, msdos prompt. Sorry

Jul 19 '05 #3
On Sun, 04 Apr 2004 21:25:14 +0200, Andreas Paasch
<An*****@Paasch .Net> wrote:
Attempting to reach the Kolinahr, torjon wrote:
I need to
1)Copy an entire mysql database, including table structres and data
2)install it into anotehr mysql db on another machine

How?

Or at lease direct me to net resources about this.


I guess you are looking for mysqldump ...

--
#Peace and long life ...
Registeret Linux user #292411

I've read the docs and there's lots of info on how to dump, but not
how to restore from that dump. Do you know the syntax?

By the way, when I do a dump, what dir does the dump go to--the root
of the db?

Thanks!! ps I'm using windows, msdos prompt. Sorry

Jul 19 '05 #4
Attempting to reach the Kolinahr, torjon wrote:
On Sun, 04 Apr 2004 21:25:14 +0200, Andreas Paasch
<An*****@Paasch .Net> wrote:
Attempting to reach the Kolinahr, torjon wrote:
I need to
1)Copy an entire mysql database, including table structres and data
2)install it into anotehr mysql db on another machine

How?

Or at lease direct me to net resources about this.
I guess you are looking for mysqldump ...

--
#Peace and long life ...
Registeret Linux user #292411

I've read the docs and there's lots of info on how to dump, but not
how to restore from that dump. Do you know the syntax?


If I'm not mistaken - not done it myself though - it should be something
like:
mysql -u root -p < dumpeddatafile. txt
By the way, when I do a dump, what dir does the dump go to--the root of the db?
no clue, but guess in the directory from where you perform the call.

Thanks!! ps I'm using windows, msdos prompt. Sorry


Well, that is in my personal opinion - which you just may ditch for free
- not good ...

/Andreas

--
#Peace and long life ...
Registeret Linux user #292411
If Mandrake goes RedHat, I go Slackware!
Jul 19 '05 #5
Attempting to reach the Kolinahr, torjon wrote:
On Sun, 04 Apr 2004 21:25:14 +0200, Andreas Paasch
<An*****@Paasch .Net> wrote:
Attempting to reach the Kolinahr, torjon wrote:
I need to
1)Copy an entire mysql database, including table structres and data
2)install it into anotehr mysql db on another machine

How?

Or at lease direct me to net resources about this.
I guess you are looking for mysqldump ...

--
#Peace and long life ...
Registeret Linux user #292411

I've read the docs and there's lots of info on how to dump, but not
how to restore from that dump. Do you know the syntax?


If I'm not mistaken - not done it myself though - it should be something
like:
mysql -u root -p < dumpeddatafile. txt
By the way, when I do a dump, what dir does the dump go to--the root of the db?
no clue, but guess in the directory from where you perform the call.

Thanks!! ps I'm using windows, msdos prompt. Sorry


Well, that is in my personal opinion - which you just may ditch for free
- not good ...

/Andreas

--
#Peace and long life ...
Registeret Linux user #292411
If Mandrake goes RedHat, I go Slackware!
Jul 19 '05 #6
On Sun, 04 Apr 2004 21:25:14 +0200, Andreas Paasch
<An*****@Paasch .Net> wrote:
Attempting to reach the Kolinahr, torjon wrote:
I need to
1)Copy an entire mysql database, including table structres and data
2)install it into anotehr mysql db on another machine

How?

Or at lease direct me to net resources about this.


I guess you are looking for mysqldump ...

--
#Peace and long life ...
Registeret Linux user #292411

I've read the docs and there's lots of info on how to dump, but not
how to restore from that dump. Do you know the syntax?

By the way, when I do a dump, what dir does the dump go to--the root
of the db?

Thanks!! ps I'm using windows, msdos prompt. Sorry

Jul 19 '05 #7
Attempting to reach the Kolinahr, torjon wrote:
On Sun, 04 Apr 2004 21:25:14 +0200, Andreas Paasch
<An*****@Paasch .Net> wrote:
Attempting to reach the Kolinahr, torjon wrote:
I need to
1)Copy an entire mysql database, including table structres and data
2)install it into anotehr mysql db on another machine

How?

Or at lease direct me to net resources about this.
I guess you are looking for mysqldump ...

--
#Peace and long life ...
Registeret Linux user #292411

I've read the docs and there's lots of info on how to dump, but not
how to restore from that dump. Do you know the syntax?


If I'm not mistaken - not done it myself though - it should be something
like:
mysql -u root -p < dumpeddatafile. txt
By the way, when I do a dump, what dir does the dump go to--the root of the db?
no clue, but guess in the directory from where you perform the call.

Thanks!! ps I'm using windows, msdos prompt. Sorry


Well, that is in my personal opinion - which you just may ditch for free
- not good ...

/Andreas

--
#Peace and long life ...
Registeret Linux user #292411
If Mandrake goes RedHat, I go Slackware!
Jul 19 '05 #8
On Thu, 08 Apr 2004 02:59:45 +0200, Andreas Paasch
<An*****@Paasch .Net> wrote:
Attempting to reach the Kolinahr, torjon wrote:
On Sun, 04 Apr 2004 21:25:14 +0200, Andreas Paasch
<An*****@Paasch .Net> wrote:
Attempting to reach the Kolinahr, torjon wrote:

I need to
1)Copy an entire mysql database, including table structres and data
2)install it into anotehr mysql db on another machine

How?

Or at lease direct me to net resources about this.

I guess you are looking for mysqldump ...

--
#Peace and long life ...
Registeret Linux user #292411

I've read the docs and there's lots of info on how to dump, but not
how to restore from that dump. Do you know the syntax?


If I'm not mistaken - not done it myself though - it should be something
like:
mysql -u root -p < dumpeddatafile. txt
By the way, when I do a dump, what

dir does the dump go to--the root of
the db?


no clue, but guess in the directory from where you perform the call.

Thanks!! ps I'm using windows, msdos prompt. Sorry


Well, that is in my personal opinion - which you just may ditch for free
- not good ...

/Andreas

--
#Peace and long life ...
Registeret Linux user #292411
If Mandrake goes RedHat, I go Slackware!

Thanks!!!

Jul 19 '05 #9
On Thu, 08 Apr 2004 02:59:45 +0200, Andreas Paasch
<An*****@Paasch .Net> wrote:
Attempting to reach the Kolinahr, torjon wrote:
On Sun, 04 Apr 2004 21:25:14 +0200, Andreas Paasch
<An*****@Paasch .Net> wrote:
Attempting to reach the Kolinahr, torjon wrote:

I need to
1)Copy an entire mysql database, including table structres and data
2)install it into anotehr mysql db on another machine

How?

Or at lease direct me to net resources about this.

I guess you are looking for mysqldump ...

--
#Peace and long life ...
Registeret Linux user #292411

I've read the docs and there's lots of info on how to dump, but not
how to restore from that dump. Do you know the syntax?


If I'm not mistaken - not done it myself though - it should be something
like:
mysql -u root -p < dumpeddatafile. txt
By the way, when I do a dump, what

dir does the dump go to--the root of
the db?


no clue, but guess in the directory from where you perform the call.

Thanks!! ps I'm using windows, msdos prompt. Sorry


Well, that is in my personal opinion - which you just may ditch for free
- not good ...

/Andreas

--
#Peace and long life ...
Registeret Linux user #292411
If Mandrake goes RedHat, I go Slackware!

Thanks!!!

Jul 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2370
by: Catherine Jo Morgan | last post by:
I get the point of backing up the database I'm working on, but what's a prototype copy? How do I make one and why is it important to work on that rather than on the main database? Or is this more for later troubleshooting and changes than for the original making of the db? TIA
7
11638
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard is proving to be more difficult. These pictureboxes are bound to an AccessDB. If the user wants to add an image, they select an image using an OpenFileDialog: Dim result As DialogResult = Pic_Sel.ShowDialog() If (result = DialogResult.OK) Then
1
3540
by: Rachel McConnell | last post by:
Hi, I am trying to import data using COPY, from a file containing thirty or so COPY commands each with 0 or more rows of data. Reason, I have a small data set I want to include into a database with an identical schema, with existing data. I figured a good way to do this would be to use pg_dump on the small dataset, trim out the table definitions and constraints, and run the resulting file. (I also reordered the COPY statements to...
4
2484
by: JIM.H. | last post by:
Hello, I am trying to write the data I got from a web service to my table in SQL Server I need to append the dataset wsDS to the dataset ds and do update. PVS.myWS.Loader load = new PVS.myWS.Loader(); DataSet wsDS=load.WsLoad(); dataGrid1.DataSource=wsDS; string strConn = ConfigurationSettings.AppSettings;
5
34049
by: Steve | last post by:
Hi; I thought I would rephrase a question I asked in another post to more quickly get to the heart of the matter. My apologies for anyone who is offended by what appears to be a repetition. My company has two identical web sites. One copy is for our customer, and one copy is for us to test our code changes on. We developed a hard to isolate bug in the copy of the web stie for our
2
1716
by: miroku800 | last post by:
A little history I designed a program in VB6 which used an access database with the aid of a then workmate (who has now moved on and lost interest) which was in two parts. A master program and a remote viewer. Now the problem the master program is working fine and has provision to make a copy of the database to a second location and updates its master database and copy no problems the remote viewer also works in that it asks where the...
1
2778
by: Scott Gifford | last post by:
Hello, I'm working on an providing an iterator interface to a database. The basic thing I'm trying to accomplish is to have my iterator read rows from the database and return constructed objects. My goal here is to abstract away the database part, so that in the future these objects could be constructed from a data source on disk, across the network, etc. The interface I'm after is similar to the standard iterator interface for an...
8
2905
by: Abandoned | last post by:
Hi. I want to copy my database but python give me error when i use this command. cursor.execute("pg_dump mydata old.dump") What is the problem ? And how can i copy the database with python ? Note: The database's size is 200 GB
1
2426
by: ll | last post by:
Hi, I have copied a MS SQL database to my local machine and am testing it with ASP pages, locally, on IIS. I have a db connect page that keeps the current connections for the live database. My question is, as the local db is named 'local,' is there another name I need to give it and thus call from the connection page? Also, when copying a db, are the permissions (username and pass) copied over with it? Thanks,
1
2514
by: Coni | last post by:
Hello, I am following steps to implement security on access 2003 through distribution: I have split the database and I am trying to distribute it: I have copied the back end file and Security.mdw to a shared network directory. Map each user's PC to the shared network directory. However, I am stuck at this step which is to use the Linked Table Manager to relink the master copy of the database to the mapped drive.
0
9489
marktang
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...
0
9298
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,...
0
9906
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9737
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7286
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5172
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3399
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2698
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.