Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 23rd, 2006, 11:43 AM   #1
java_roshan
Professional Programmer
 
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4 java_roshan is on a distinguished road
"Moving" Databases

The title may not directly tell you what my question is ....


I have MS-SQL Server in my college LAB.

I created a database on another computer at my classmate's home.

How do I use this database in my college LAB without connecting these two computers. (i.e. the computers are not connected, so the database cannot be remotely accessed..)

There would be some file for this database...but where do I find it exactly and if I find it, should I just purely copy it at my college LAB and will it work?
java_roshan is offline   Reply With Quote
Old Feb 23rd, 2006, 12:31 PM   #2
Symptom
Newbie
 
Symptom's Avatar
 
Join Date: Sep 2005
Posts: 28
Rep Power: 0 Symptom is on a distinguished road
I don't know under which OS you have mysql, but that's the basic concept:

Run this in the source computer (the one with the mysql database)

% mysqldump --user=account_name --password=password databasename_tobesaved > path/to/file

Take the saved file to the other computer and run this on the target computer

% mysql - u account_name -p database < path/to/file

To be honest, I haven't tried this but it's supposed to work...
__________________
The geeks shall inherit the earth.
Symptom is offline   Reply With Quote
Old Feb 23rd, 2006, 1:00 PM   #3
java_roshan
Professional Programmer
 
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4 java_roshan is on a distinguished road
Oh..I am using Microsoft - SQL Server 7 in college LAB.
Same is at my classmate's home.

Since, MySQL is command based, I wouldn't be trying the solution with MS-SQL ...

I have backed up the database and will try to restore it in my college LAB...I'll see if it works!
java_roshan is offline   Reply With Quote
Old Feb 23rd, 2006, 1:27 PM   #4
Ghost
Man Bear Pig Hunter
 
Ghost's Avatar
 
Join Date: Jul 2005
Location: NorCal, USA
Posts: 290
Rep Power: 4 Ghost is on a distinguished road
That should just move over pretty clean if you did an entire backup, not just tables or not just data.
__________________
People who click "images" that end with .exe shouldn't have computers.
Ghost is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:41 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC