Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > Everything SQL ( MySQL, MSSQL, DB2, Postgre, Oracle, etc...)
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 06-28-2007, 09:16 AM   #1 (permalink)
sarah31
Code Monkey
 
sarah31's Avatar
 
Join Date: May 2002
Location: canada
Posts: 55
sarah31 is on a distinguished road
Db transfer question.

Heya,

Recently I had my home computer/server crap out on me and I had to go out and purchase a new one. Unfortunately I had one small database set up that was being used for one of my image display galleries.

I pulled the hard drive out of that old computer and placed it in an external enclosure so I do have access to all of the data on the drive. So what I would like to be able to do is be able to grab the old MySQL database that held the gallery info onto my new drive and use it on the new computer.

I am not sure quite how to do this though and I was not able to glean enough info from the MySQL documentation. I was hoping someone here would be able to help me out so I will not have to set this gallery up again from scratch (it woud take about a full day)
__________________
sarah31 is offline   Reply With Quote
Old 06-28-2007, 09:34 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,397
sde is on a distinguished road
hi sarah,

usually mysql files are stored in /var/lib/mysql. the database will be a directory with the same name as the db. inside the directory you should see table names with extensions like MYD, MYI, and frm.

once you've located the db directory on the backup drive, copy it over to the mysql directory on your new drive.

once that is done, you should be able to login to mysql as root and grant permissions to that database for the user/pass specified in your gallery scripts.
__________________
testing 1 2 3
sde is offline   Reply With Quote
Old 06-28-2007, 02:07 PM   #3 (permalink)
sarah31
Code Monkey
 
sarah31's Avatar
 
Join Date: May 2002
Location: canada
Posts: 55
sarah31 is on a distinguished road
Cool! Sounds easy enough. Thanks very much!
__________________
sarah31 is offline   Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
reference question! quick question, pls help albtross Standard C, C++ 3 12-06-2006 01:20 PM
anyone know a lot? question concerns php also. Rotkiv HTML, XML, Javascript, AJAX 7 01-12-2006 12:09 PM
java/jsp test question ideas sde Java 2 03-25-2005 06:38 PM
Easy JavaScript question keystoneman HTML, XML, Javascript, AJAX 4 11-23-2004 05:29 AM
DB Design Question Part II sde Program Design and Methods 3 05-10-2003 12:24 PM


All times are GMT -8. The time now is 09:29 PM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle