Page 4 of 4

Re: Cannot Upload .sql into phpMyAdmin

Posted: Fri Sep 25, 2015 7:57 am
by skurudo
protocore wrote:Still got a problem, I've changed the php.ini but error still comes up
anyway of expanding the upload limit in sql
What error?

Re: Cannot Upload .sql into phpMyAdmin

Posted: Sun Oct 25, 2015 9:23 pm
by krok
same problem on debian, tried setting chmod 777 but didnt work. any idea?

Re: Cannot Upload .sql into phpMyAdmin

Posted: Sat Feb 27, 2016 6:44 am
by hoangkoha
Today i got same problem like us, my os is CentOS 6.5 with VestaCP
Version:0.9.8 (x86_64)
Release:15
I pay to use chroot ftp, it worked very well but this problem is terrible. Edit /etc/php.ini, increase upload_max_filesize, post_max_size, reboot server and CAN NOT UPLOAD DATABASE.SQL FILE.

// SOLVED, System block my IP, i'm sorry VestaCP team.

Re: Cannot Upload .sql into phpMyAdmin

Posted: Sun Dec 04, 2016 7:54 am
by tamez11
skid wrote:Most probably dump size exceed default php limits. Try to increase post_max_size and upload_max_filesize values. I guess 64M should be enough.
Open /etc/php5/apache2/php.ini and set

Code: Select all

post_max_size = 64M
upload_max_filesize = 64M
Then restart the apache.

Code: Select all

apachectl restart
If you are using CentOS or RHEL, then the php.in location is /etc/php.ini
How can I do this on my mac? Should I open the terminal? connect to my root@ip and what commands should I type?

Re: Cannot Upload .sql into phpMyAdmin

Posted: Wed Dec 07, 2016 2:21 pm
by skurudo
tamez11 wrote: How can I do this on my mac? Should I open the terminal? connect to my root@ip and what commands should I type?
ssh root@ip
nano path-to-config
service apache2 restart

Re: Cannot Upload .sql into phpMyAdmin

Posted: Sat Oct 13, 2018 2:20 pm
by matolog
on debian worked for me

Code: Select all

nano /etc/php.ini
and expand resoruces as bescribed.

Actually I had some problem with nano, so I used F4 in MidnightCommander (then F2 for save and F10 for quit).

Re: Cannot Upload .sql into phpMyAdmin

Posted: Mon Dec 03, 2018 1:49 pm
by cyclone200
Hi,

I have this problem and I've done everything mentioned above...

Could you please help me?

Re: Cannot Upload .sql into phpMyAdmin

Posted: Mon Dec 03, 2018 4:08 pm
by grayfolk
cyclone200 wrote:
Mon Dec 03, 2018 1:49 pm
Hi,

I have this problem and I've done everything mentioned above...

Could you please help me?
Use console for import: https://stackoverflow.com/a/17666279

Re: Cannot Upload .sql into phpMyAdmin

Posted: Tue Dec 04, 2018 10:48 am
by cyclone200
grayfolk wrote:
Mon Dec 03, 2018 4:08 pm
cyclone200 wrote:
Mon Dec 03, 2018 1:49 pm
Hi,

I have this problem and I've done everything mentioned above...

Could you please help me?
Use console for import: https://stackoverflow.com/a/17666279
Thank you but this is not a solution...

Re: Cannot Upload .sql into phpMyAdmin

Posted: Sat Oct 12, 2019 6:09 pm
by nextstation.cl
Thank you so much! This works for me until I get the solution!
Fenkins wrote:
Mon Dec 16, 2013 2:49 pm
I got the same situation explained in starting post, but changes in php.ini wont give me any positive result, except my phpMyAdmin panel now tells me that I got 64mb file upload limit.
I also tried to set the tmp folder manually and set permissions to 777 ( I am running ubuntu 12.04.03 if that matters) and still no luck.
Any comments?

As a temporary solution I used import from terminal:
From the mysql console:

Code: Select all

mysql> use DATABASE_NAME;
mysql> source path/to/file.sql;
But phpMyAdmin still aint work for import... Dont feel good about it.