+ Reply to Thread
Results 1 to 10 of 10




  

Thread: USB enclosure MySQL data dump

      
  1. #1
    Jedi Master bbrian017 will become famous soon enoughbbrian017 will become famous soon enoughbbrian017 will become famous soon enough bbrian017's Avatar
    Join Date
    April 29, 2007
    Location
    Toronto
    Posts
    408
    Rep Power
    6
    Feedback Score
    0

    Default USB enclosure MySQL data dump

    Operating System: CentOS 5
    Processor: Intel Pentium 4 - 3.0 GHz
    RAM: 1 GB
    Total Disk Space: 120 GB
    RAID: None
    Bandwidth Quota: 500 GB

    My server recently crashed and now I'm reprovisioning a new hard drive.

    I paid the 150 USD to have a USB enclosure of the old hard drive.

    How do I perform the following?

    Export mysql from the websites on the hard drive?

    EDIT: I found it.

    EXPORT

    Code:
    # mysqldump -u username -ppassword database_name > FILE.sql
    IMPORT

    Code:
    # mysql -u username -ppassword database_name < FILE.sql
    BUT Where does this stuff get exported to?

    How do I move it from the old hard drive to the new one?

    So far I understand I have to mount the hard drive on to my new hard drive.

    Code:
    mkdir /olddrive
    mount /dev/sdb3 /olddrive
    I can use all the help if anyone has some free hanging around and helping time.

    I figure if I can get help with the first website the other 8 will be no problem...
    Last edited by bbrian017; Feb 6th, 2010 at 7:15 am.

  2. #2
    Jedi Master bbrian017 will become famous soon enoughbbrian017 will become famous soon enoughbbrian017 will become famous soon enough bbrian017's Avatar
    Join Date
    April 29, 2007
    Location
    Toronto
    Posts
    408
    Rep Power
    6
    Feedback Score
    0

    Default Re: USB enclosure MySQL data dump

    I managed to successfully mount the hard drive and visit it's /home/ root

    Please see attachment.

    Questions

    Am I looking at the sql data or physical files such as html, tpl, and php?

    If it's SQL Data how do I see the physical files such as html, tpl, and php?

    If it's the physical files such as html, tpl, and php how do I see the sql data?

    I ran this,

    # mysqldump -u username -ppassword database_name > blogengage.sql

    It seem to have worked but I'm not sure where it put blogengage.sql

    Thanks,

    Brian
    Attached Images Attached Images

  3. #3
    Grand Masters grim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond repute grim's Avatar
    Join Date
    September 22, 2006
    Posts
    10,060
    Rep Power
    25
    Feedback Score
    0

    Default Re: USB enclosure MySQL data dump

    Ouch, no external backup I take it?

  4. #4
    Jedi Master bbrian017 will become famous soon enoughbbrian017 will become famous soon enoughbbrian017 will become famous soon enough bbrian017's Avatar
    Join Date
    April 29, 2007
    Location
    Toronto
    Posts
    408
    Rep Power
    6
    Feedback Score
    0

    Default Re: USB enclosure MySQL data dump

    no lol well actually I did for about 70% of my websites but not yawoop.com so I'm doing it all this way now!

    I managed to export and import my first database now I'm about to move files. Lets see if this works.

  5. #5
    Grand Masters grim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond repute grim's Avatar
    Join Date
    September 22, 2006
    Posts
    10,060
    Rep Power
    25
    Feedback Score
    0

    Default Re: USB enclosure MySQL data dump

    Crossing my fingers for you.
    Bet after this you're going to make sure you have an external back up

    I run a mini server just for this purpose, to always make sure I have a backup of all sites.

  6. #6
    Grand Masters vectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nice vectro's Avatar
    Join Date
    September 5, 2008
    Location
    U.S.A.
    Posts
    1,499
    Rep Power
    4
    Feedback Score
    0

    Default Re: USB enclosure MySQL data dump

    I received an e-mail from the list. It seems like blogengage is back now. The transfer seems to be complete.

    Quote Originally Posted by bbrian017 View Post
    It seem to have worked but I'm not sure where it put blogengage.sql
    I think you have it all sorted out now, but if you have cPanel you can log into that account and use PHPMyAdmin to drop your SQL database.
    Vectro Web Hosting - Web hosting with solid tech support.

    x Proxy Host - Affordable PHP proxy hosting with proxy-specific features.

  7. #7
    Jedi Master bbrian017 will become famous soon enoughbbrian017 will become famous soon enoughbbrian017 will become famous soon enough bbrian017's Avatar
    Join Date
    April 29, 2007
    Location
    Toronto
    Posts
    408
    Rep Power
    6
    Feedback Score
    0

    Default Re: USB enclosure MySQL data dump

    oh jezzz what a mess that was!

    I have 5 of my 9 websites back up.

    I wish I could had dropped it into myphpadmin but ti's way to big. I have to use SSH command line because i"m on Linux.

  8. #8
    Grand Masters vectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nice vectro's Avatar
    Join Date
    September 5, 2008
    Location
    U.S.A.
    Posts
    1,499
    Rep Power
    4
    Feedback Score
    0

    Default Re: USB enclosure MySQL data dump

    If the server has cPanel there is a way to move an account from one server to another. It takes the databases with it and sets everything up as an exact clone. Doing things manually with SSH is a last resort for me, though it has to happen sometimes.
    Vectro Web Hosting - Web hosting with solid tech support.

    x Proxy Host - Affordable PHP proxy hosting with proxy-specific features.

  9. #9
    Grand Masters grim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond reputegrim has a reputation beyond repute grim's Avatar
    Join Date
    September 22, 2006
    Posts
    10,060
    Rep Power
    25
    Feedback Score
    0

    Default Re: USB enclosure MySQL data dump

    Wish I had a big enough HD on my backup server I'd offer WTF members accounts for backup purposes. Sadly I dont

  10. #10
    Jedi Master bbrian017 will become famous soon enoughbbrian017 will become famous soon enoughbbrian017 will become famous soon enough bbrian017's Avatar
    Join Date
    April 29, 2007
    Location
    Toronto
    Posts
    408
    Rep Power
    6
    Feedback Score
    0

    Default Re: USB enclosure MySQL data dump

    It was actually the longest 18 hours in my life. See I had full back up of my large sites form the night before. But how often are you presented with an experience like this in a server environment.

    I learned a lot but there's still so much more to learn using linux and SSH

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. SEO and Data Mining
    By aldonjohnes in forum SEO Forum
    Replies: 3
    Last Post: Jan 21st, 2010, 1:58 am
  2. Replies: 0
    Last Post: Dec 22nd, 2009, 7:34 pm
  3. Data Recovery
    By CountryBoy in forum Computers and Electronics
    Replies: 0
    Last Post: Jul 9th, 2009, 9:49 am
  4. Question on numeric data types in Mysql
    By jonambed in forum HTML & Website Design
    Replies: 2
    Last Post: Jun 2nd, 2009, 3:27 pm
  5. Replies: 7
    Last Post: Jun 17th, 2008, 7:38 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
WebTalkForums
WebTalkForums
Recent Forum Threads