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!

Import data file into myphpadmin from cpanel file directory

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

  1. cmartiniv

    cmartiniv Registered

    Sep 2, 2014
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    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 Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    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:

    mysql database_name < /path/to/dump.sql
    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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