Closed Thread
Results 1 to 4 of 4

Thread: MySQL question

  1. #1
    Pro Member KapTinKiRk is an unknown quantity at this point KapTinKiRk's Avatar
    Join Date
    Oct 2000
    Location
    CT
    Posts
    252
    I don't know much about MySQL or databases in general, so this might sound stupid to those in the know.

    But say I have a MySQL database on a host, then I need to move servers. Can I simply back up the database, or download it and then upload it to the new server, and have it work?

  2. #2
    Senior Member jvv is an unknown quantity at this point
    Join Date
    Oct 2000
    Location
    Antwerp, Belgium.
    Posts
    191
    Yes it's possible, you can do it using the mysqldump command. You can find full instuctions on the mysql documentation pages. This should be the actual section:

    http://www.mysql.com/documentation/m...tion=mysqldump

    You should be able to get a .sql file this way which you can download and move to the new server.

    To load it in the new database, use:
    Code:
    mysql [-uusername] [-p] [database] < yourdumpfile.sql
    "Don't go knocking on death's door, ring the doorbell and run away, that really makes Death angry"

  3. #3
    Pro Member KapTinKiRk is an unknown quantity at this point KapTinKiRk's Avatar
    Join Date
    Oct 2000
    Location
    CT
    Posts
    252
    Thanks, i didn't even think of going to the MySQL site .. silly me.

  4. #4
    Silly you .

    Thanks for that bit of code always wondered if that was possible.
    GeekSRV - Premium UK Shared & Reseller Hosting Solutions.
    cPanel 11 - RVSiteBuilder - Installatron - Deluxe ASSP Plus much more.
    Don't see what you are looking for? Contact us sales [@] geeksrv.net

Closed 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