Ask a Question related to MySQL, Design and Development.
-
Adam Smith #1
Restoration from Tarball
Running vers 5.0.18 on FreeBSD 4.9
Have some old data in tar format. Set of *.frm, *.MYI, *.MYD files - How
can I import these inot the New mysql system
Thanks
Adam Smith Guest
-
grayscale photo restoration
A client has asked me to clean-up a hi res scan (13.5mb, grayscale, tiff) of a photographic copy of an old photograph engraving. The linescreen on... -
[OT] Set packed path in tarball (using Gnu Tar)
Hi, Say I want to create a tar archive containing 'file1' and 'file2', but I want their paths packed to 'some_dir/'. How do I achieve this ? One... -
Restoration Dot Matrix - The Ultimate Challenge!
To All you pros out there... I have this age old pic of me and my lil' sis taken out via a dot matrix printer...Have giev it a shot myself but my... -
preview7 tarball size
I notice there was a substantial size jump between p6 and p7: Jul 31 09:47 GNU Compr. Tar ruby-1.8.0-preview6.tar.gz 1758Kb Aug 1 12:10 GNU... -
Backup Restoration Procedure
Currently have SCO Enterprise 5.0.6 running with some production software installed. The company who installed the server created a System menu... -
Giuseppe Maxia #2
Re: Restoration from Tarball
Adam Smith wrote:
Follow these steps:> Running vers 5.0.18 on FreeBSD 4.9
> Have some old data in tar format. Set of *.frm, *.MYI, *.MYD files - How
> can I import these inot the New mysql system
>
> Thanks
1) find which data directory you are using
mysql> SHOW VARIABLES LIKE "datadir";
2) find out which user and group own the files the files in your data directoty
$ ls -l /path/to/data_directory
(let's say those user and group are "myusr" and "mygrp")
3) make a new directory under your data directory and cd there
$ mkdir /path/to/data_directory/new_db
$ cd /path/to/data_directory/new_db
4) untar the files
tar -xf filename.tar
(Assuming that your tar does not have any subdirectory. if it does, just move the files
in the directory that you created manually, and erase the one coming from the tar file)
5) change the ownership of the new directory to the user and group you found in step (2)
$ cd /path/to/data_directory/
$ chown -R myusr.mygrp new_db
6) From mysql, you can just USE new_db and you should see the tables.
If you get an error, review the above steps carefully.
ciao
gmax
--
_ _ _ _
(_|| | |(_|>< The Data Charmer
_|
[url]http://datacharmer.blogspot.com/[/url]
Giuseppe Maxia Guest



Reply With Quote

