Uploading/Importing a Database with a site

Discussion in 'MySQL' started by mafia mazy, Mar 7, 2009.

  1. #1
    Well I'm going to have to move my forum to a new host soon, how can I move the database in such a way that once its uploaded, I dont have to do anything and it'll work with the files like it would in the old host?
     
    mafia mazy, Mar 7, 2009 IP
  2. Techmonkey

    Techmonkey Active Member

    Messages:
    107
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    as long as you keep the directory structure of your site the same and export the full db, then there shouldnt be any problems at all.

    The only issue you may face is when importing the DB to your new host as mySQL/phpmyAdmin does not like importing large .sql files.

    Instead upload it as an SQL file to your hosting and then email your host and ask them if they will import it for you as they can do it straight on the server which is faster and more reliable.
     
    Techmonkey, Mar 7, 2009 IP
  3. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #3
    You need to create the same MySQL database, username with the same old password so that you dont have to change them in your site too :)

    BTW, it should not be a problem if you have to change it.
     
    mwasif, Mar 7, 2009 IP
  4. nadamanik

    nadamanik Banned

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It's easier if both hosting have Cpanel based system
     
    nadamanik, Mar 7, 2009 IP
  5. MayurGondaliya

    MayurGondaliya Well-Known Member

    Messages:
    1,233
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    170
    #5
    - Directory structure should not be changed in the new server file system.
    - You need to download the database backup and restore it in the database at the new server.

    Download backup using phpmyadmin or mysql administrator and restore it using the same tool using which you take the backup.
     
    MayurGondaliya, Mar 9, 2009 IP
  6. peterCx

    peterCx Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    export from old host

    import into new host
     
    peterCx, Mar 9, 2009 IP