![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Professional Programmer
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4
![]() |
"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? |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Sep 2005
Posts: 28
Rep Power: 0
![]() |
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. |
|
|
|
|
|
#3 |
|
Professional Programmer
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4
![]() |
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! |
|
|
|
|
|
#4 |
|
Man Bear Pig Hunter
Join Date: Jul 2005
Location: NorCal, USA
Posts: 295
Rep Power: 4
![]() |
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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|