473,320 Members | 1,948 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

copying a mysql database

Hello,
Mysql3 on an fc3 box. I do not have the root password for mysqld yet i
need to copy a database let's call it database1 to database2. This is for a
site testing purpose, it's to be an exact copy of database1, yet the two
databases do not have to be kept in sync after the copy.
Any advice appreciated.
Thanks.
Dave.
Feb 18 '06 #1
2 1483
Dave wrote:
need to copy a database


This manual section explain different methods. At least mysqldump should
be usable if you just have permission to the database you wish to copy:

http://dev.mysql.com/doc/refman/5.0/...revention.html
Feb 18 '06 #2
"Dave" <dm*******@woh.rr.com> wrote in message
news:ew********************@tornado.ohiordc.rr.com ...
Mysql3 on an fc3 box. I do not have the root password for mysqld yet i
need to copy a database let's call it database1 to database2.
There's a documentation page on resetting the root password:
http://dev.mysql.com/doc/refman/4.1/...rmissions.html
This is for a site testing purpose, it's to be an exact copy of database1,
yet the two databases do not have to be kept in sync after the copy.


I would do this by backing up the existing database using mysqldump, and
restoring the data dump to a different database, using the mysql CLI. It
could also be handy if you are doing testing, because you can use the data
dump file to reset the testing database back to its original state
repeatedly.

This page and its sub-pages talk about backing up and restoring:
http://dev.mysql.com/doc/refman/4.1/...revention.html

Regards,
Bill K.
Feb 18 '06 #3

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

Similar topics

0
by: Bennett Haselton | last post by:
I'm trying to port my MySQL tables for a database called "tracerlock" from one server to another. On the old server, in the /var/lib/mysql/tracerlock directory, there was a ".MYD", ".MYI" and...
0
by: Terry | last post by:
I am trying to move a datbase from one machine to another. I have tried two different methods and neither are working. First I tried using : >> mysqldump dbName > backup_file.sql >> mysql...
3
by: 21novembre | last post by:
Hi all, I made a question several days before to describe my strange trouble of mysqldump. But I still can't figour it out. Well, I just want to ask another question whether I could just backup...
4
by: Gordon Burditt | last post by:
What's the easiest way to copy a row from one table to another (with the same schema), without knowing in advance the number and types of the columns? The problem: I have several sets of tables...
1
by: usaims | last post by:
I'm learning how to copy columns and I'm having a little trouble. The column that I'm trying to copy is from the same database. Correct me if I am wrong, but I think you have to create the column...
0
by: TB | last post by:
Hi All: This news group is proving to be great help on my path towards mastering ASP.NET thanks to all of you helpful souls out there. I am looking forward to the day when I can contribute with...
5
by: TB | last post by:
Hi All: This news group is proving to be great help on my path towards mastering ASP.NET thanks to all of you helpful souls out there. I am looking forward to the day when I can contribute...
4
by: zMisc | last post by:
Is it possible to copy a table from one schema to another schema by just copying the frm file to the directory for the new schema? What is the best way to create a new database with all the...
1
by: Israel | last post by:
I'll preface this by saying that my preference is to dump a database to SQL and transfer that file around but this is not the situation that I'm in and I'll probably be in this situation in...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.