SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mysql raw import

    Hi,
    I have a Vbulletin forum that I would like to migrate to another platform. For that I need to do all sorts of testing on my local development machine. I tried importing a mysqldump produced by both the VB admin section, and the host's cpanel backup tool.
    When I try to import the dump to a local database using this command
    mysql -u username -p database < dbdump.sql
    I keep getting all sorts of error (such as duplicate entries etc)
    Is there a way to just dump and restore a db on a binary level? I'd like to just make a raw duplicate of the db as is without getting Mysql to evaluate every line of code

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,022
    Mentioned
    53 Post(s)
    Tagged
    2 Thread(s)
    r937.com | rudy.ca | Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  3. #3
    SitePoint Member
    Join Date
    Mar 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was looking for a way that wouldn't involve my host, but then I thought what the heck that's what they are there for... anyways I asked them to gzip me the actual MYSQL file, they did and now I got a copy of the DB on my local machine. Thanks for that!


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
  •