473,386 Members | 1,754 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,386 software developers and data experts.

Retrieve MySQL data

Hello,
Until recently I ran a php/apache mySQL wbsite on MacOSX. For some
reason I can't get the machine working again so now the site is
offline. I succeeded to copy the MySQL data from the Mac OX partition.
However, this is the 'raw' data - not a SQLdump but the frm, myd and
myi files for each table.
The data is not of much use if I want to use it in a website again,
I'd rather have a SQLdump.

So now my question is:

Can I just add these files in the data directory of another mySQL
installation I setup locally under win2k and be able to make a dql
dump?

Or is there another solution?

Thanks!
Marc
Jul 20 '05 #1
5 1825
Marc wrote:
Can I just add these files in the data directory of another mySQL
installation I setup locally under win2k and be able to make a dql
dump?

Or is there another solution?


Atleast if you are using same OS and same version of MySQL it should
work (it worked for me). I'm not sure will it work from one OS to
another OS, and from some version to another version it propably won't
work (properly). But give it a try (but be sure to have backups before
trying).
Jul 20 '05 #2
Marc wrote:
Can I just add these files in the data directory of another mySQL
installation I setup locally under win2k and be able to make a dql
dump?

Or is there another solution?


Atleast if you are using same OS and same version of MySQL it should
work (it worked for me). I'm not sure will it work from one OS to
another OS, and from some version to another version it propably won't
work (properly). But give it a try (but be sure to have backups before
trying).
Jul 20 '05 #3
Marc wrote:
Can I just add these files in the data directory of another mySQL
installation I setup locally under win2k and be able to make a dql
dump?

Or is there another solution?


Atleast if you are using same OS and same version of MySQL it should
work (it worked for me). I'm not sure will it work from one OS to
another OS, and from some version to another version it propably won't
work (properly). But give it a try (but be sure to have backups before
trying).
Jul 20 '05 #4
OK, problem solved. How?

1 move all datafiles from Mac OSX to pc;
2 install MySQL on pc& move the datafiles in the datafolder of new
MySQL installation;
3 start mySQL server;
4 use mysqldump.exe (in bin directory) to backup the data;
5 voila....

Thanks for the advice Agg.

Aggro <sp**********@yahoo.com> wrote in message news:<CY**************@read3.inet.fi>...
Marc wrote:
Can I just add these files in the data directory of another mySQL
installation I setup locally under win2k and be able to make a dql
dump?

Or is there another solution?


Atleast if you are using same OS and same version of MySQL it should
work (it worked for me). I'm not sure will it work from one OS to
another OS, and from some version to another version it propably won't
work (properly). But give it a try (but be sure to have backups before
trying).

Jul 20 '05 #5
OK, problem solved. How?

1 move all datafiles from Mac OSX to pc;
2 install MySQL on pc& move the datafiles in the datafolder of new
MySQL installation;
3 start mySQL server;
4 use mysqldump.exe (in bin directory) to backup the data;
5 voila....

Thanks for the advice Agg.

Aggro <sp**********@yahoo.com> wrote in message news:<CY**************@read3.inet.fi>...
Marc wrote:
Can I just add these files in the data directory of another mySQL
installation I setup locally under win2k and be able to make a dql
dump?

Or is there another solution?


Atleast if you are using same OS and same version of MySQL it should
work (it worked for me). I'm not sure will it work from one OS to
another OS, and from some version to another version it propably won't
work (properly). But give it a try (but be sure to have backups before
trying).

Jul 20 '05 #6

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

Similar topics

0
by: Andy Jackman | last post by:
Hi, I'm new to mySql. I've got a table with an integer field defined like this: l_start_wait int(9) not null I inserted a value into the table using mysql command line client with: Insert into...
0
by: Marc | last post by:
Hello, Until recently I ran a php/apache mySQL wbsite on MacOSX. For some reason I can't get the machine working again so now the site is offline. I succeeded to copy the MySQL data from the Mac...
16
by: Daniel Tonks | last post by:
First, please excuse the fact that I'm a complete MySQL newbie. My site used forum software that I wrote myself (in Perl) which, up until now, has used flat files. This worked fine, however...
5
by: Roy Gourgi | last post by:
Hi, I am used to working in Visual FoxPro and I would like to be able to create a database and store and retrieve information from it. What is the simplest way to do it and what should I be...
0
by: Gert | last post by:
Hi, I need to store a array() of byte to a mysql field. I created a field in mysql of type varbinary. But storing and retrieving gives problems. Please help. The strTemp = EnDeCrypt(txt,...
13
by: no.mail.pls | last post by:
Hiya, How do i retreive fields with similar values from 2 tables? I tried to use (1) "SELECT * FROM $table1 as o , $table2 as p WHERE o.name like '%p.name%'"; but it retrieves nothing at...
3
by: JM | last post by:
Before storing information from a form in database I perform follwing operations on it : $path = mysql_real_escape_string(strip_tags(trim(urldecode($_POST)))); $summary =...
12
lifeisgreat20009
by: lifeisgreat20009 | last post by:
I am a newbie to Struts and JSP...I have been working on the code below for 5 hours now..I googled a lot but couldn't get much help so finally I am here.. Hoping of getting my problem solved. Please...
2
by: sarah aziz | last post by:
Hello all I am trying to retrieve the data from mysql database by php to plot a flot graph can anyone help me please this is all i have done for now Php $sql = mysql_query("SELECT count(Msg_ID)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.