Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Mar 2003
    Location
    Chino Hills, CA
    Posts
    17

    Default Moving SQL Databases...

    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. #2
    Member
    Join Date
    Apr 2004
    Posts
    18

    Default

    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

    Zachery Woods

Similar Threads & Tags
Similar threads

  1. sql databases created by magic
    By outlaw web in forum Database Discussions
    Replies: 7
    Last Post: 04-09-2008, 12:01 PM
  2. sql databases created by magic
    By outlaw web in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 04-09-2008, 12:01 PM
  3. cpanel password and sql databases
    By cooldude7273 in forum Database Discussions
    Replies: 5
    Last Post: 05-12-2005, 12:28 PM
  4. cpanel password and sql databases
    By cooldude7273 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 05-12-2005, 12:28 PM
  5. Moving SQL Databases...
    By KonokoHost in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-01-2005, 09:22 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube