Activity Stream
48,167 MEMBERS
61112 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 7 of 7
  1.     
    #1

    Default Database restore through SSH

    i am a noob in ssh so guys tell me frm first step to last in restoring a database thro ssh in cpanel

    edit : ssh is enabled in that cpanel
    GoPantheoN Reviewed by GoPantheoN on . Database restore through SSH i am a noob in ssh so guys tell me frm first step to last in restoring a database thro ssh in cpanel edit : ssh is enabled in that cpanel Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Banned
    Website's:
    SmartWarez.org SwoImage.com MazaOnline.com
    You will need the database username, password and database name, and putty
    After you ssh into OLD server, type "mysqldump -u USER_NAME -p DB_NAME | gzip > FILE.sql.gz"
    Enter the database password when it asks. Then, usinf FTP or sFTP, copy the FILE.sql.gz file from the OLD server to the NEW server. (Presumably by copying it from OLD server to your PC and then to NEW server.)
    After you ssh into NEW server, type "gunzip < FILE.sql.gz | mysql -u USER_NAME -p DB_NAME"
    Enter the database password when it asks. When it is done, your database will be copied to the new server.

    Restoring . ssh to new host (make sure the database actually exists!)

    mysql database -uusername -p < database.sql
    or simply mysql database -uusername -p
    enter password
    source database.sql

    PM me if you need more help.

  4.     
    #3
    oh ok bro will try

  5.     
    #4
    Member
    in shh type:
    mysql -uyour_dbuser -pyour_dbname </home/location/of/database/data.sql
    hit enter
    it will then ask for password of database enter it and hit enter

    you could also do this:
    cd /home/location/of/database
    mysql -uyour_dbuser -pyour_dbname <data.sql
    hit enter
    it will then ask for password of database enter it and hit enter

  6.     
    #5
    Member
    Quote Originally Posted by SmartWareZ View Post
    You will need the database username, password and database name, and putty
    After you ssh into OLD server, type "mysqldump -u USER_NAME -p DB_NAME | gzip > FILE.sql.gz"
    Enter the database password when it asks. Then, usinf FTP or sFTP, copy the FILE.sql.gz file from the OLD server to the NEW server. (Presumably by copying it from OLD server to your PC and then to NEW server.)
    After you ssh into NEW server, type "gunzip < FILE.sql.gz | mysql -u USER_NAME -p DB_NAME"
    Enter the database password when it asks. When it is done, your database will be copied to the new server.

    Restoring . ssh to new host (make sure the database actually exists!)

    mysql database -uusername -p < database.sql
    or simply mysql database -uusername -p
    enter password
    source database.sql

    PM me if you need more help.
    Very, very helpful!
    Thank you!
    Internet Entrepreneur and Computer Engineer

  7.     
    #6
    ty SmartWareZ & r0ck

  8.     
    #7
    Member
    Website's:
    security-shell.info helldownunder.in
    Thanx For Info....

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Best plugin to backup and restore database ?
    By matriX in forum Wordpress
    Replies: 2
    Last Post: 16th Feb 2012, 06:47 AM
  2. Database won't restore propertly Emergency!
    By DuckBre in forum Technical Help Desk Support
    Replies: 5
    Last Post: 21st Sep 2011, 09:25 AM
  3. How to restore my database
    By souvikroy1111 in forum Hosting Discussion
    Replies: 4
    Last Post: 28th Jul 2011, 04:15 PM
  4. VBulletin Database restore... Urgent please help
    By shariq27 in forum vBulletin
    Replies: 5
    Last Post: 3rd Oct 2010, 08:23 AM
  5. Can any one tell me script to restore database??
    By anuragblr in forum Webmaster Discussion
    Replies: 6
    Last Post: 27th Jul 2009, 06:34 PM

Tags for this Thread

BE SOCIAL