How to increase phpmyadmin upload file size
I am not able to change the file size that phpmyadmin accepts for importing databases on my test server.
I have changed all values I have some idea about in my.cnf
:
max_packet_size
Key_buffer
or the upload file size and
max_post_size
value in every php.ini
file I have found on the system.
The accepted file size on the import screen still remains 8,192kib.
phpmyadmin
add a comment |
I am not able to change the file size that phpmyadmin accepts for importing databases on my test server.
I have changed all values I have some idea about in my.cnf
:
max_packet_size
Key_buffer
or the upload file size and
max_post_size
value in every php.ini
file I have found on the system.
The accepted file size on the import screen still remains 8,192kib.
phpmyadmin
As per reference of increase MySQL import file size by usage of a terminal of ubuntu.
– GuruQuest
Feb 7 '17 at 18:41
add a comment |
I am not able to change the file size that phpmyadmin accepts for importing databases on my test server.
I have changed all values I have some idea about in my.cnf
:
max_packet_size
Key_buffer
or the upload file size and
max_post_size
value in every php.ini
file I have found on the system.
The accepted file size on the import screen still remains 8,192kib.
phpmyadmin
I am not able to change the file size that phpmyadmin accepts for importing databases on my test server.
I have changed all values I have some idea about in my.cnf
:
max_packet_size
Key_buffer
or the upload file size and
max_post_size
value in every php.ini
file I have found on the system.
The accepted file size on the import screen still remains 8,192kib.
phpmyadmin
phpmyadmin
edited Aug 19 '17 at 18:35
Zanna
50.6k13134241
50.6k13134241
asked Jun 24 '14 at 14:35
JoshJosh
43051434
43051434
As per reference of increase MySQL import file size by usage of a terminal of ubuntu.
– GuruQuest
Feb 7 '17 at 18:41
add a comment |
As per reference of increase MySQL import file size by usage of a terminal of ubuntu.
– GuruQuest
Feb 7 '17 at 18:41
As per reference of increase MySQL import file size by usage of a terminal of ubuntu.
– GuruQuest
Feb 7 '17 at 18:41
As per reference of increase MySQL import file size by usage of a terminal of ubuntu.
– GuruQuest
Feb 7 '17 at 18:41
add a comment |
4 Answers
4
active
oldest
votes
The first things to check (or ask your host provider to check) are the values of max_execution_time
, upload_max_filesize
, memory_limit
and post_max_size
in the php.ini configuration file. All of these three settings limit the maximum size of data that can be submitted and handled by PHP.
Please note that post_max_size
needs to be larger than upload_max_filesize
.
add a comment |
To increase MySQL phpmyadmin import file size in Ubuntu 16.04 or newer, follow these steps. In the newest Ubuntu version you can have either PHP 5 or PHP 7.
Step - 1: open php.ini
of the appropriate PHP version(s).
For PHP v5.0
sudo -H gedit /etc/php5/apache2/php.ini
For PHP v7.0
sudo -H gedit /etc/php/7.0/apache2/php.ini
For PHP v7.1
sudo -H gedit /etc/php/7.1/apache2/php.ini
For PHP v7.2
sudo -H gedit /etc/php/7.2/apache2/php.ini
For PHP v7.3
sudo -H gedit /etc/php/7.3/apache2/php.ini
Step - 2: Now need to increase below parameters in the php.ini
file.
memory_limit = 1500M
post_max_size = 1500M
upload_max_filesize = 1500M
Please Note : post_max_size should be larger than upload_max_size
Step - 3: Now you need to restart your apache server to effect changes.
sudo service apache2 restart
Someone else tried to leave this as a comment in response to this answer: "Note it is actually mentioned above but when I inserted 1500Mb it didn't worked.My localhost got out of the order. It should 1500m not 1500mb ;)"
– doppelgreener
Nov 8 '18 at 15:34
add a comment |
create info.php page and check all details about file
<?php
phpinfo();
?>
run in your browser search upload_max_filesize and post_max_size change by default value 2M to 80M.
Run
sudo -H gedit /etc/php5/apache2/php.ini
change both values
upload_max_filesize
andpost_max_size
change by default value2M
to80M
Restart apache
sudo /etc/init.d/apache2 restart
add a comment |
Set the variables upload_max_filesize, post_max_size, memory_limit
in php.ini to the right values and restart the server, then it should work.
If it does not work, check with phpinfo()
if you edited the right php.ini.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f487644%2fhow-to-increase-phpmyadmin-upload-file-size%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
The first things to check (or ask your host provider to check) are the values of max_execution_time
, upload_max_filesize
, memory_limit
and post_max_size
in the php.ini configuration file. All of these three settings limit the maximum size of data that can be submitted and handled by PHP.
Please note that post_max_size
needs to be larger than upload_max_filesize
.
add a comment |
The first things to check (or ask your host provider to check) are the values of max_execution_time
, upload_max_filesize
, memory_limit
and post_max_size
in the php.ini configuration file. All of these three settings limit the maximum size of data that can be submitted and handled by PHP.
Please note that post_max_size
needs to be larger than upload_max_filesize
.
add a comment |
The first things to check (or ask your host provider to check) are the values of max_execution_time
, upload_max_filesize
, memory_limit
and post_max_size
in the php.ini configuration file. All of these three settings limit the maximum size of data that can be submitted and handled by PHP.
Please note that post_max_size
needs to be larger than upload_max_filesize
.
The first things to check (or ask your host provider to check) are the values of max_execution_time
, upload_max_filesize
, memory_limit
and post_max_size
in the php.ini configuration file. All of these three settings limit the maximum size of data that can be submitted and handled by PHP.
Please note that post_max_size
needs to be larger than upload_max_filesize
.
answered Feb 14 '18 at 18:14
Mostafa SoufiMostafa Soufi
1454
1454
add a comment |
add a comment |
To increase MySQL phpmyadmin import file size in Ubuntu 16.04 or newer, follow these steps. In the newest Ubuntu version you can have either PHP 5 or PHP 7.
Step - 1: open php.ini
of the appropriate PHP version(s).
For PHP v5.0
sudo -H gedit /etc/php5/apache2/php.ini
For PHP v7.0
sudo -H gedit /etc/php/7.0/apache2/php.ini
For PHP v7.1
sudo -H gedit /etc/php/7.1/apache2/php.ini
For PHP v7.2
sudo -H gedit /etc/php/7.2/apache2/php.ini
For PHP v7.3
sudo -H gedit /etc/php/7.3/apache2/php.ini
Step - 2: Now need to increase below parameters in the php.ini
file.
memory_limit = 1500M
post_max_size = 1500M
upload_max_filesize = 1500M
Please Note : post_max_size should be larger than upload_max_size
Step - 3: Now you need to restart your apache server to effect changes.
sudo service apache2 restart
Someone else tried to leave this as a comment in response to this answer: "Note it is actually mentioned above but when I inserted 1500Mb it didn't worked.My localhost got out of the order. It should 1500m not 1500mb ;)"
– doppelgreener
Nov 8 '18 at 15:34
add a comment |
To increase MySQL phpmyadmin import file size in Ubuntu 16.04 or newer, follow these steps. In the newest Ubuntu version you can have either PHP 5 or PHP 7.
Step - 1: open php.ini
of the appropriate PHP version(s).
For PHP v5.0
sudo -H gedit /etc/php5/apache2/php.ini
For PHP v7.0
sudo -H gedit /etc/php/7.0/apache2/php.ini
For PHP v7.1
sudo -H gedit /etc/php/7.1/apache2/php.ini
For PHP v7.2
sudo -H gedit /etc/php/7.2/apache2/php.ini
For PHP v7.3
sudo -H gedit /etc/php/7.3/apache2/php.ini
Step - 2: Now need to increase below parameters in the php.ini
file.
memory_limit = 1500M
post_max_size = 1500M
upload_max_filesize = 1500M
Please Note : post_max_size should be larger than upload_max_size
Step - 3: Now you need to restart your apache server to effect changes.
sudo service apache2 restart
Someone else tried to leave this as a comment in response to this answer: "Note it is actually mentioned above but when I inserted 1500Mb it didn't worked.My localhost got out of the order. It should 1500m not 1500mb ;)"
– doppelgreener
Nov 8 '18 at 15:34
add a comment |
To increase MySQL phpmyadmin import file size in Ubuntu 16.04 or newer, follow these steps. In the newest Ubuntu version you can have either PHP 5 or PHP 7.
Step - 1: open php.ini
of the appropriate PHP version(s).
For PHP v5.0
sudo -H gedit /etc/php5/apache2/php.ini
For PHP v7.0
sudo -H gedit /etc/php/7.0/apache2/php.ini
For PHP v7.1
sudo -H gedit /etc/php/7.1/apache2/php.ini
For PHP v7.2
sudo -H gedit /etc/php/7.2/apache2/php.ini
For PHP v7.3
sudo -H gedit /etc/php/7.3/apache2/php.ini
Step - 2: Now need to increase below parameters in the php.ini
file.
memory_limit = 1500M
post_max_size = 1500M
upload_max_filesize = 1500M
Please Note : post_max_size should be larger than upload_max_size
Step - 3: Now you need to restart your apache server to effect changes.
sudo service apache2 restart
To increase MySQL phpmyadmin import file size in Ubuntu 16.04 or newer, follow these steps. In the newest Ubuntu version you can have either PHP 5 or PHP 7.
Step - 1: open php.ini
of the appropriate PHP version(s).
For PHP v5.0
sudo -H gedit /etc/php5/apache2/php.ini
For PHP v7.0
sudo -H gedit /etc/php/7.0/apache2/php.ini
For PHP v7.1
sudo -H gedit /etc/php/7.1/apache2/php.ini
For PHP v7.2
sudo -H gedit /etc/php/7.2/apache2/php.ini
For PHP v7.3
sudo -H gedit /etc/php/7.3/apache2/php.ini
Step - 2: Now need to increase below parameters in the php.ini
file.
memory_limit = 1500M
post_max_size = 1500M
upload_max_filesize = 1500M
Please Note : post_max_size should be larger than upload_max_size
Step - 3: Now you need to restart your apache server to effect changes.
sudo service apache2 restart
edited Jan 6 at 16:00
Fendi Setiawan
31
31
answered Aug 18 '17 at 19:53
Bhaskar BhattBhaskar Bhatt
30124
30124
Someone else tried to leave this as a comment in response to this answer: "Note it is actually mentioned above but when I inserted 1500Mb it didn't worked.My localhost got out of the order. It should 1500m not 1500mb ;)"
– doppelgreener
Nov 8 '18 at 15:34
add a comment |
Someone else tried to leave this as a comment in response to this answer: "Note it is actually mentioned above but when I inserted 1500Mb it didn't worked.My localhost got out of the order. It should 1500m not 1500mb ;)"
– doppelgreener
Nov 8 '18 at 15:34
Someone else tried to leave this as a comment in response to this answer: "Note it is actually mentioned above but when I inserted 1500Mb it didn't worked.My localhost got out of the order. It should 1500m not 1500mb ;)"
– doppelgreener
Nov 8 '18 at 15:34
Someone else tried to leave this as a comment in response to this answer: "Note it is actually mentioned above but when I inserted 1500Mb it didn't worked.My localhost got out of the order. It should 1500m not 1500mb ;)"
– doppelgreener
Nov 8 '18 at 15:34
add a comment |
create info.php page and check all details about file
<?php
phpinfo();
?>
run in your browser search upload_max_filesize and post_max_size change by default value 2M to 80M.
Run
sudo -H gedit /etc/php5/apache2/php.ini
change both values
upload_max_filesize
andpost_max_size
change by default value2M
to80M
Restart apache
sudo /etc/init.d/apache2 restart
add a comment |
create info.php page and check all details about file
<?php
phpinfo();
?>
run in your browser search upload_max_filesize and post_max_size change by default value 2M to 80M.
Run
sudo -H gedit /etc/php5/apache2/php.ini
change both values
upload_max_filesize
andpost_max_size
change by default value2M
to80M
Restart apache
sudo /etc/init.d/apache2 restart
add a comment |
create info.php page and check all details about file
<?php
phpinfo();
?>
run in your browser search upload_max_filesize and post_max_size change by default value 2M to 80M.
Run
sudo -H gedit /etc/php5/apache2/php.ini
change both values
upload_max_filesize
andpost_max_size
change by default value2M
to80M
Restart apache
sudo /etc/init.d/apache2 restart
create info.php page and check all details about file
<?php
phpinfo();
?>
run in your browser search upload_max_filesize and post_max_size change by default value 2M to 80M.
Run
sudo -H gedit /etc/php5/apache2/php.ini
change both values
upload_max_filesize
andpost_max_size
change by default value2M
to80M
Restart apache
sudo /etc/init.d/apache2 restart
edited Aug 19 '17 at 18:36
Zanna
50.6k13134241
50.6k13134241
answered Oct 10 '16 at 14:07
Siddharth ShuklaSiddharth Shukla
16113
16113
add a comment |
add a comment |
Set the variables upload_max_filesize, post_max_size, memory_limit
in php.ini to the right values and restart the server, then it should work.
If it does not work, check with phpinfo()
if you edited the right php.ini.
add a comment |
Set the variables upload_max_filesize, post_max_size, memory_limit
in php.ini to the right values and restart the server, then it should work.
If it does not work, check with phpinfo()
if you edited the right php.ini.
add a comment |
Set the variables upload_max_filesize, post_max_size, memory_limit
in php.ini to the right values and restart the server, then it should work.
If it does not work, check with phpinfo()
if you edited the right php.ini.
Set the variables upload_max_filesize, post_max_size, memory_limit
in php.ini to the right values and restart the server, then it should work.
If it does not work, check with phpinfo()
if you edited the right php.ini.
answered Jun 24 '14 at 14:39
PabiPabi
5,65933042
5,65933042
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f487644%2fhow-to-increase-phpmyadmin-upload-file-size%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
As per reference of increase MySQL import file size by usage of a terminal of ubuntu.
– GuruQuest
Feb 7 '17 at 18:41