Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Moving SQL Databases...

Discussion in 'Database Discussion' started by KonokoHost, May 1, 2005.

  1. KonokoHost

    KonokoHost Member

    Joined:
    Mar 25, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Chino Hills, CA
    A client had given us a VBulletin SQL database dump was made so we could transfer an SQL database to our server from the old server. Its named forums.sql
    The old server was a Direct Admin server running MySQL 4.1

    We have a CPanel server running MySQL 4.0.

    What would be the proper most efficient way of putting this database into his account without using PHPMyAdmin? (It's a 30mb file)

    -randyc
     
  2. Zachery

    Zachery Member

    Joined:
    Apr 15, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    151
    Restoring it via the command line. You should never rely on web based scripts to backup or restore databases.

    Since the new server was running 4.1 you will need to go and cleanup the database first.

    At the end of each table create there should be a default character set bit, you need to remove that. Then you will be able to restore it via the shell


    mysql -uUSERNAME -pPASSWORD databasename < /path/to/file.sql

    :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice