Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 31
  1. #1
    Member
    Join Date
    Aug 2008
    Posts
    12

    Default phpMyAdmin cannot upload or import databases.

    Hello,

    Sorry for my english.

    I have a problem with phpMyAdmin during import of sql files.

    In fact, i have this error message when i start the import.

    "Aucune données n'a été reçu en vue de l'importation. Aucun nom de fichier n'a été fourni, ou encore la taille du fichier a dépassé la limite permise par votre configuration de PHP. "

    In english, i thinks is :
    "No data has been received for import. No filename
    has been provided, or the file size exceeded the limit
    by your PHP configuration."

    But, my php configuration accept a size file of 50m.

    Please, do you have any solution for this problem ?

    Thanks a lot

  2. #2
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    phpMyAdmin uses it's own php.ini saved under

    /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini
    Change the upload limit in the above file and try to import the sql file once again.

  3. #3
    Member
    Join Date
    Aug 2008
    Posts
    12

    Default

    Hi,

    Thanks for your answer.

    I have look into this configuration file, but i don't thinks that is the origin of problem.

    Code:
    file_uploads    = On                            ; Whether to allow HTTP file uploads
    upload_tmp_dir  = /tmp                  ; temporary directory for HTTP uploaded files (will use system default if not specified)
    upload_max_filesize = 128M

    Code:
    post_max_size = 128M
    My sql file take 8ko.

    Do you have an other idea for this problem ?

    Thanks a lot

  4. #4
    Member
    Join Date
    Feb 2003
    Posts
    74

    Default same issue here

    Did you ever figure this out?

    I'm having the same issue. The file I'm trying to import is only 402kb and the post max size in php.ini is set to 8mb

    Thanks for any help.

  5. #5
    Registered User
    Join Date
    Oct 2004
    Posts
    4

    Default

    This same issue began for me today also. I import a csv file daily. It did not work today and resulted in the error. I tried the same file that worked yesterday and it also did not work.

    Increasing values in the php.ini file has no positive effect.

    A separate thrid party program for managing MySQL databases allowed the file to be imported without issue.

    The problem must be with a very recent change to cPanel/phpMyAdmin.

    Looking forward to a fix.

    (EDIT) FYI - the file in question is only 276KB. The process has worked fine for nearly 2 years. Something broke...

  6. #6
    Member
    Join Date
    Feb 2010
    Posts
    6

    Default

    Same problem here

    cPanel 11.25.0-R43470 (RELEASE tree)

  7. #7
    Registered User
    Join Date
    Dec 2007
    Posts
    3

    Default Problem solved for me

    Hello all,

    I had the same problem today : with the root password, no problem to import a file in PhpMyAdmin but error when trying with a user password.

    I solved the problem changing the line in the file /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini :

    "; upload_tmp_dir ="
    TO
    "upload_tmp_dir = /tmp"

  8. #8
    Registered User
    Join Date
    Feb 2010
    Posts
    1

    Default

    This fix worked perfectly for me -thanks.

  9. #9
    Registered User
    Join Date
    Oct 2004
    Posts
    4

    Default

    Making this change in the php.ini file did not work for me. Also, import does not work whether logged in as root or not.

    Any other suggestions?

    (EDIT) - I should clarify; I modified the file located at /usr/local/lib and then restarted apache. The change shows up in the phpinfo script located on the domain in question. Should I attempt to modifiy the file listed above? and if so, will the changes stick?
    Last edited by Graywolfie; 02-18-2010 at 11:57 AM.

  10. #10
    Member
    Join Date
    Jul 2005
    Location
    Sticky On Internet
    Posts
    555

    Default

    Thanks, Maat, you solved my problem.

    Graywolfie, you need to edit the php.ini file which is used for phpmyadmin
    as said by Maat.

    pico /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini

  11. #11
    Registered User
    Join Date
    Dec 2007
    Posts
    3

    Default

    Hello all,

    The problem is here again after the Cpanel update. I just contact the Cpanel Support....
    I'll keep you informed.

  12. #12
    Registered User
    Join Date
    Oct 2004
    Posts
    4

    Default

    Thanks Maat and Mohit for the advice. Since I currently have a workaround I'll monitor the comments here.

    It will be better to have a proper fix than a band-aid on the issue. Anyone who wants to use the import option should not need to edit the php.ini file first. Whatever broke it in the first place needs to be undone.

    I'm just happy to know it wasn't just me having the issue.

  13. #13
    Registered User
    Join Date
    Dec 2007
    Posts
    3

    Default

    I had an answer from Cpanel support :

    - Edit the file as said in my previous post
    - Run "/scripts/makecpphp" to fix the php.ini
    - Try a "/scripts/upcp" to test if the file is still correct after the update

    That should do it.

  14. #14
    Member
    Join Date
    Feb 2010
    Posts
    6

    Default

    Maat's latest post seems to solve the problem for me [ tested on cPanel 11.25.0-R43471 (RELEASE tree) ]

  15. #15
    cPanel Staff cPanelGregK's Avatar
    Join Date
    Sep 2009
    Posts
    14

    Default phpMyAdmin Upload Issue

    We are aware of an issue where uploads of sql dumps via phpMyAdmin are failing, due to the lack of a setting for upload_tmp_dir.

    To correct ths issue, edit /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini and change

    Code:
     'upload_tmp_dir '
    to

    Code:
    'upload_tmp_dir  = /tmp '

Similar Threads & Tags
Similar threads

  1. i cant Import more 50 MB phpmyadmin
    By bt4 in forum E-mail Discussions
    Replies: 9
    Last Post: 02-23-2011, 02:52 PM
  2. phpMyAdmin can't export/import DB
    By sentono in forum Database Discussions
    Replies: 8
    Last Post: 12-17-2010, 01:44 PM
  3. phpMyAdmin 3.2.4 Import ZIP Support
    By Technus007 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-15-2010, 11:47 AM
  4. remote mysql server import of Databases?
    By hostmedic in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-26-2008, 07:05 AM
  5. Users can't import mySQL databases. ._.;
    By Parahosting in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-10-2007, 06:52 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube