Restoration from Tarball

Ask a Question related to MySQL, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. [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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default Re: Restoration from Tarball

    Adam Smith wrote:
    > 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
    Follow these steps:
    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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139