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!

Database Restore From Backup

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

  1. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    595
    Likes Received:
    15
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    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 [~]#
    --------------------------------------------------
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,788
    Likes Received:
    82
    Trophy Points:
    78
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    595
    Likes Received:
    15
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Yes, Its working now. Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,675
    Likes Received:
    1,789
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    I am happy to see you were able to import the database successfully. Thank you for updating us with the outcome.
     
    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