Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Aug 2003
    Posts
    113

    Default when i setup a remote mysql server..

    When i setup a remote mysql server for doing the database job,how can i transfer all the mysql in the cpanel account to the sql server? Have anyone try it?

  2. #2
    Member vishal's Avatar
    Join Date
    Jan 2003
    Location
    India
    Posts
    343

    Default Re: when i setup a remote mysql server..

    Originally posted by allenhui
    When i setup a remote mysql server for doing the database job,how can i transfer all the mysql in the cpanel account to the sql server? Have anyone try it?
    1. Stop Mysql or HTTPd on your server (So that the mysql database wont update when the transfer is going on)
    2. create the database on the remote server with the same username and passwd as it is on your server.
    3. take a dump of your database using mysqldump
    4. ftp the sql file to remote server
    5. restore the database on the remote server.

    Reference :
    =============

    Take backup of current mysql database
    ======================================
    mysqldump --user=username --password=password databasename > filename.sql

    Ftp the .sql file to the other server.

    To Restore the Mysql file in mysql database
    ===========================================
    mysql -uUsername -pPassword databasename < filename.sql

    You may need root access or SSH atleast.

    Hope this helps !
    rh_linuxion

    It is very simple to be Happy but it is very difficult to be Simple.

  3. #3
    Member
    Join Date
    Aug 2003
    Posts
    113

    Default

    Thx~

Similar Threads & Tags
Similar threads

  1. Setup Remote MySQL server
    By Maxence in forum New User Questions
    Replies: 14
    Last Post: 09-03-2011, 04:03 AM
  2. Setup remote mysql server
    By B12Org in forum Database Discussions
    Replies: 3
    Last Post: 09-07-2010, 12:02 PM
  3. Setup Remote MYSQL Server
    By CoolMike in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-15-2010, 01:48 PM
  4. Remote mysql server setup - ssh for setup only?
    By Alcedema in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-08-2009, 01:29 PM
  5. Setup Remote Mysql Server
    By izmirhost in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-28-2008, 03:50 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube