Results 1 to 3 of 3

Thread: How to Recreate the same Database to the Different Machine

  1. #1
    Join Date
    Jan 2009
    Posts
    48

    How to Recreate the same Database to the Different Machine

    I have all the data stored in my MySQL database and I am trying to moving it. I'm creating an install script (PHP) that will create the database on the new machine.

    The problem is that when I go to phpMyAdmin and export the database, the views have database/user specific information in the create statement. Is there a simple way to remove them? (or a simpler way to create this script?) or will I have to go and hand retouch them all?

  2. #2
    Join Date
    Mar 2008
    Posts
    433

    Re: How to Recreate the same Database to the Different Machine

    In phpMyAdmin export uncheck the box next to data and you'll only get the database structure.It only takes a moment to remove all other data in the .sql file and leave only the create table statement. just open it in a text editor.

  3. #3
    Join Date
    Oct 2008
    Posts
    180

    Re: How to Recreate the same Database to the Different Machine

    Before you attempt the restore, right click on the destination database and click properties. Look at the Files tab and see what the physical path is to the .MDF and .LDF on that server. Then, when you do the restore, on the same screen where you force the overwrite, make sure the file path matches the destination server.

Similar Threads

  1. Replies: 5
    Last Post: 11-06-2011, 10:26 PM
  2. Replies: 5
    Last Post: 22-08-2010, 02:40 AM
  3. Need to recreate NTDS Settings for DC in Sites and Services
    By runout74 in forum Active Directory
    Replies: 5
    Last Post: 04-12-2008, 02:01 AM
  4. Replies: 3
    Last Post: 10-05-2007, 09:03 PM
  5. How do I recreate secedit.sdb?
    By Achraj in forum Windows Security
    Replies: 2
    Last Post: 03-04-2007, 07:30 PM

Tags for this Thread

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
  •  
Page generated in 1,749,910,286.08331 seconds with 16 queries