Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jul 2008
    Posts
    254

    Smile Import database

    Hello

    It will work if i try to restore a database using GUI cpanel or i will need ssh?

    The database is 120mb.

    Thank you

  2. #2
    Member
    Join Date
    Jul 2008
    Location
    localhost
    Posts
    101

    Default

    Quote Originally Posted by ASTRAPI View Post
    Hello

    It will work if i try to restore a database using GUI cpanel or i will need ssh?

    The database is 120mb.

    Thank you
    Yes, you can restore/import the database through phpmyadmin. It would get restored.

    If you are familiar with the SSH and the linux commands, you can even give it a try with restoring the database via SSH. The command to restore the database is

    root@server [~]# mysql database_name < database.sql
    mention the absolute path of database.sql file.

  3. #3
    Support Manager cPanelEric's Avatar
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    488
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    It might work in phpmyadmin, but it will work for sure with SSH. I would strongly recommend using SSH.

    You can use something like this example below. Change out the parts in <>'s with your information.
    Code:
    eric@svr01 ~ $ mysql -u <username_dbuser> -p <username_dbname> < sqlfilename.sql
    It should prompt you for the password and return another ssh line when it's done. (And with 120megs it might take a little while)

  4. #4
    Member linux7802's Avatar
    Join Date
    Dec 2007
    Posts
    224
    cPanel/Enkompass Access Level

    Root Administrator

    Default Solution

    Yes its better if you upload the database backup file on your server in .sql format and restore it from shell.

    Gunjan@servers~]$mysql username_databasename < sqlfilename.sql

    If you are not having Server access then follow the steps.

    1) Upload the sql file in .sql format under your hosing account.

    2) Provide database name and .sql file name to your hosting provider and ask
    them to restore it under your database name.

    Hope it will solve your issue...
    Regards,
    G R Sonar
    cPanel Hosting Blog

  5. #5
    Member
    Join Date
    Jul 2008
    Posts
    254

    Default

    Ok ssh seems to be the best solution

    Thanks all of you

Similar Threads & Tags
Similar threads

  1. How to import MySQL database via SSH
    By maxie in forum Database Discussions
    Replies: 4
    Last Post: 09-28-2011, 04:25 AM
  2. Import MySQL database
    By david_sh in forum Enkompass Discussions
    Replies: 1
    Last Post: 06-04-2011, 03:26 PM
  3. Cant import database help!!!!!!!!!!!!!!!!!!!!!!!!!!
    By bsasninja in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-17-2005, 12:25 PM
  4. How Can I import data into an exsistense database
    By yumoryuk in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-19-2005, 05:43 PM
  5. Import my Database in Cpanel
    By Behrooz_Ice in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 04-05-2004, 10:09 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube