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.

Import data file into myphpadmin from cpanel file directory

Discussion in 'Database Discussions' started by cmartiniv, Sep 2, 2014.

  1. cmartiniv

    cmartiniv Registered

    Joined:
    Sep 2, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,
    I am new to cpanel - and this forum! Hello!

    I am trying to import a data file into one of my databases (in phpMyAdmin) and the file is located in my cpanel file directory. I was wondering how this is done. It seems like the Import function is suited for importing from your computer. How do you access the file in the cpanel directory?

    Note: The restriction is that I do not want to download the file to my computer and then import it into the myphpadmin.

    Thanks in advance!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    649
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, you must have the file stored locally on your computer when using that feature in phpMyAdmin. You can download the file through File Manager in cPanel, or import the database dump via the command line. EX:

    Code:
    mysql database_name < /path/to/dump.sql
    Thank you.
     
Loading...

Share This Page