Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Database Server
  • Search

Cannot Upload .sql into phpMyAdmin

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Post Reply
  • Print view
Advanced search
40 posts
  • 1
  • 2
  • 3
  • 4
  • Next
fast11
Posts: 2
Joined: Tue Oct 29, 2013 7:45 pm

Cannot Upload .sql into phpMyAdmin
  • Quote

Post by fast11 » Tue Oct 29, 2013 7:53 pm

Hello VestaCP community,

I have been trying to import my database into php. On most attempts I am getting the following error message:
"No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration. See FAQ 1.16."

In other instances phpMyAdmin stops responding and shows a 505 internal server error.

Could you please guide me on how to resolve this issue.

Thank you!
Top

skid
VestaCP Team
Posts: 1476
Joined: Wed Apr 06, 2011 11:12 pm

Re: Cannot Upload .sql into phpMyAdmin
  • Quote

Post by skid » Wed Oct 30, 2013 12:25 pm

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
Top

fast11
Posts: 2
Joined: Tue Oct 29, 2013 7:45 pm

Re: Cannot Upload .sql into phpMyAdmin
  • Quote

Post by fast11 » Wed Oct 30, 2013 7:33 pm

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
It worked. Thanks for your help. Looking forward to test vestacp and may use it in a production environment.
Top

Fenkins
Posts: 4
Joined: Wed Dec 11, 2013 11:59 am

Re: Cannot Upload .sql into phpMyAdmin
  • Quote

Post by Fenkins » 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.
Top

skid
VestaCP Team
Posts: 1476
Joined: Wed Apr 06, 2011 11:12 pm

Re: Cannot Upload .sql into phpMyAdmin
  • Quote

Post by skid » Wed Dec 18, 2013 9:21 pm

I hope this how-to will help you?
Top

Kaurer
Posts: 16
Joined: Fri Dec 20, 2013 10:02 pm

Re: Cannot Upload .sql into phpMyAdmin
  • Quote

Post by Kaurer » Thu Dec 26, 2013 10:10 am

Hello,

I have the same problem.

I have configured:
post_max_size = 64M
upload_max_filesize = 64M

I have also:
upload_tmp_dir = /tmp

apachectl restart

But nothing works.

Any tips?

Thank you.
Top

demian
Posts: 543
Joined: Thu May 16, 2013 5:19 am

Re: Cannot Upload .sql into phpMyAdmin
  • Quote

Post by demian » Thu Dec 26, 2013 12:46 pm

Kaurer wrote:Hello,

I have the same problem.

I have configured:
post_max_size = 64M
upload_max_filesize = 64M

I have also:
upload_tmp_dir = /tmp

apachectl restart

But nothing works.

Any tips?

Thank you.

what dump size?

if more 64Mb
increase more post_max_size and upload_max_filesize in php.ini

if not
increase max_allowed_packet

could be fix it
Top

Kaurer
Posts: 16
Joined: Fri Dec 20, 2013 10:02 pm

Re: Cannot Upload .sql into phpMyAdmin
  • Quote

Post by Kaurer » Thu Dec 26, 2013 3:05 pm

@demian, the file size is only 400 Kb.
Top

grainga
Posts: 7
Joined: Thu Dec 26, 2013 7:24 am

Re: Cannot Upload .sql into phpMyAdmin
  • Quote

Post by grainga » Thu Dec 26, 2013 6:29 pm

The only way I have been able to import databases is via ssh.

mysql -u (username) -p (database name ) < /path/to/sql/on/server
then enter user password when prompted.
Top

Kaurer
Posts: 16
Joined: Fri Dec 20, 2013 10:02 pm

Re: Cannot Upload .sql into phpMyAdmin
  • Quote

Post by Kaurer » Fri Dec 27, 2013 4:42 pm

grainga wrote:The only way I have been able to import databases is via ssh.

mysql -u (username) -p (database name ) < /path/to/sql/on/server
then enter user password when prompted.
To get out of trouble is good, but the good solution would be to do it from phpMyadmin.

Thanks for your comment.
Top


Post Reply
  • Print view

40 posts
  • 1
  • 2
  • 3
  • 4
  • Next

Return to “Database Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password