473,726 Members | 2,021 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I get MySQL data from an external hard drive

MySQL 3.23.49
PHP 4.3.8
Apache 2.0.51

Hi All!

I had a CRM Open Source application installed and running. Windows Xp
crashed. I was able to copy the contents of the entire hard drive onto
a USB External Hard Drive. I have to assume I also copied the data. I
do NOT have a current back up of my data.
I reinstalled WinXP and xammp along with the CRM app and now I need to
get my data from the External Hard Drive.

Am I able to simply copy folders/files from the external drive to my
rebuilt system? If so, which files do I need and where may I find them?
or.. Am I able to link to the data on the external drive and import the
data into my rebuilt system? If so, can you direct me to a procedure to
accomplish this?

or... Is there a better way to get my data?

ANY help is greatly appreciated.

Thank you

Dec 6 '05 #1
3 5765
ei*****@hotmail .com wrote:
I do NOT have a current back up of my data.
Do you think you should establish a practice of making backups in the
future? Read section 5.8 of the MySQL docs:
I reinstalled WinXP and xammp along with the CRM app and now I need to
get my data from the External Hard Drive.

Am I able to simply copy folders/files from the external drive to my
rebuilt system?
This is not recommended as a reliable method of restoring data. But it
seems like it's your only chance at this point.
If so, which files do I need and where may I find them?
MySQL keeps all data files under what's called the "data directory".
The location of the data directory should be defined in the entry for
"datadir" in your my.ini configuration file. You said you're using
MySQL 3.23, which is very old, so I don't know if the default data
directory was different then. On my installation of of MySQL 4.1 on
Windows, this is "C:\Program Files\MySQL\MyS QL Server 4.1\data" by

Under the data directory, MyISAM tables are stored in subdirectories
named per the database, in files with a ".MYD" extension. Files with
".MYI" extension store index data, and this can be reconstructed. Files
with ".FRM" extension store information about the table structure.
Recover these if you can, but these can be reconstructed too.

It's somewhat unlikely that you're using InnoDB tables in MySQL 3.23,
but if you are, these tables are stored differently from MyISAM tables.
InnoDB tables store data for all databases by default in a file called
"ibdata1" under the data directory (not in a subdirectory).
or.. Am I able to link to the data on the external drive and import the
data into my rebuilt system?

The table files must be under the data directory to be read by MySQL,
and MySQL can only have one data directory configured at a time.

You could, in theory, configure your MySQL server to use the path to the
data directory on the external drive as the data directory. Then create
backups of each of your databases, using the "mysqldump" tool. Then
reset the data directory config back to the default location on your C:
drive, and restore the backups you made.

You can change the data directory configuration by editing "C:\Program
Files\MySQL\MyS QL Server 4.1\my.ini" and changing the value of the
datadir. For example, on my system I have MySQL 4.1 installed, so I
would change this line in my.ini:

datadir="C:/Program Files/MySQL/MySQL Server 4.1/Data/"

to this (assuming the USB external drive is on E:):

datadir="E:/Program Files/MySQL/MySQL Server 4.1/Data/"

You should verify your paths in the Windows file explorer. I don't have
MySQL 3.23 installed, and I don't know offhand what the default paths
are for that release.

Restart the MySQL service each time you make config file changes, to
apply the changes. Either use the Control Panel -> Admin Tools ->
Services app, or else open a command shell and use "net stop MySQL"
followed by "net start MySQL".

Good luck!

Bill K.
Dec 6 '05 #2
Hello Bill,
Thank you for your help...
"Data Backup".... that will NEVER... EVER happen again. I could have
saved myself HOURS by backing up.
What I ended up doing:
Uninstalled the CRM application
Uninstalled xampp
Deleted all ini, php, config files
Reinstalled the packaged CRM app (with apache,php & MySQL) as I did
Rebooted into Safe Mode
Deleted the installed htdocs folder & pasted the htdos folder from my
ext. H/D
Deleted the installed mysql folder (it was not under htdocs) & pasted
the mysql folder from my ext. H/D
Rebooted Windows
Logged in to CRM .. All of my settings, custom pages and MOST
importantly MY DATA was intact
IMMEDIATELY!!! Ran a backup

Thank you again for getting me onto the right road.

Dec 7 '05 #3
EiEiO wrote:
Thank you for your help...
"Data Backup".... that will NEVER... EVER happen again. I could have
saved myself HOURS by backing up.

Yes, many software workers have this happen to them a number of times
before they "see the light" that the time invested into making backups
saves them a lot of gray hairs in the long run. It can also be a
challenge to convince managers that this is worthwhile...

Also important is automating the process of creating backups, so they
happen regularly without you having to remember to do it every time.
Windows has a scheduler service that can run a BAT file, which you
design to execute the mysqldump tool.

See for example:

Another tip is to store your database backup files on a separate
physical machine from the one where the backups are made. That way if
the hard disk catches fire or someone pours their coffee into the
machine (this does happen!!), you still have the data.

I'm glad you got your data back intact, even if it was a lot of work!

Bill K.
Dec 7 '05 #4

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

Similar topics

by: AMD | last post by:
Hi, I would like to have MySQL use a mapped network drive. I'd like to do this in case there is a failure of the mysql machine, I can just replace it with a new machine pointing to the same network drive. Is this possible at all? Thanks, Andre M. Descombes
by: Sped | last post by:
Hi, I'm looking for some code to monitor for when an external drive is connected to a computer (USB ThumbDrive, External Hard Drive, etc.) and is assigned a drive letter. I'd want my code to trigger off of the mounting process so I can search for a specific file on that hard drive (which is always guaranteed to be in a specific spot).
by: steveBelfast | last post by:
Having trouble installing my 180 day Visual Studio 2005 trial disk. The CD that was sent is actually a DVD not a CD. My home PC only has a CD drive. I attempted to install on an external drive using a work PC with a DVD drive and then use the external drive from my home PC. Unfortunately the install process puts files on the hard drive of the work PC as well as on the external drive. So I can not run the software from my home PC using the...
by: alf | last post by:
Hi, is it possible that due to OS crash or mysql itself crash or some e.g. SCSI failure to lose all the data stored in the table (let's say million of 1KB rows). In other words what is the worst case scenario for MyISAM backend? Also is it possible to not to lose data but get them corrupted?
by: tpgames | last post by:
The Error Message: If you have NTFS installed on your hard drive, you need to create a MS DOS boot partition for windows. Also, the icon that says HD does not even come up. The diagnostic test have said: Hard Drive NONE found. All NTFS MS DOS programs we've tried, have not worked. So, as a work around, we were wondering if the following would work: Can one hook up an external hard drive to it, toss on XP (onto external HD), and use the...
by: Coldfire | last post by:
Since i cannot show the differences in a two-column like table. I am first putting MS SQL Server 2005 and then MySQL 5.x. MS SQL Server 2005 Brief Overview - SQL Server is a full-fledged database system developed specifically for large enterprise databases. All advanced features of a relational database are fully implemented. - Once you purchase the product, you are only limited to the Sybase-derived engine.
by: =?Utf-8?B?VG9ueQ==?= | last post by:
I have a Seagate 160GB external hard drive and have been using it to store all my files on using my Windows XP system installed on my E-Machine. Now suddenly my computer continues to tell me that the drive is working properly and that the driver installed is the most recent driver. However, my computer does not assign it a drive location for me to access my files. What is the problem? It is definitely in the XP software. I was able to...
by: =?Utf-8?B?S2VsbHk=?= | last post by:
Each fall and winter I deal witht he same problem. When the daylight savings time comes into effect the time stamp for files on my external portable hard drive are 1 hour out from the time stamps for the files on my Desktop hard drive I then need to delete my files off my external portable HD and then recopy the "updated time stamp files" external portable HD. Is there anything I can do to prevent this from happening. I have tried...
by: =?Utf-8?B?c2hpZw==?= | last post by:
I have an old acer aspire 3610 hard drive that has some very important pictures on it, can someone please advise me as to what I need to get the pictures off the hard drive. Im aware that I will need an external hard drive caddy? but Im unsure what it is and exactly wich one I need.
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...
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...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
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...
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...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
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...
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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.