The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Database Restore From Backup

Discussion in 'Database Discussions' started by Nirjonadda, Feb 28, 2015.

  1. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    150
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    Hello,

    I am getting this error, If i want upload my one database. Please let me know how to fix?


    ---------------------------------------------
    login as: root
    root@194.145.208.207's password:
    Last login: Sat Feb 28 19:26:23 2015 from 151.55.69.64
    root@la [~]# mysql -u user_name -p -h localhost user_database < /home/user/www/restore/user_database.sql.gz
    Enter password:
    '.ROR at line 1: Unknown command '\
    root@na [~]#
    --------------------------------------------------
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    Can you please give a try now with the following commands and let me know.

    Code:
    gunzip /home/user/www/restore/user_database.sql.gz 
    
    mysql -u user_name -p -h localhost user_database < /home/user/www/restore/user_database.sql
     
  3. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    150
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    Yes, Its working now. Thanks
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page