I want import huge (at least 300 mb) sql scripts via phpMyAdmin.
I\'ve tried:
post_max_size = 750M
upload_max_filesize = 750M
max_ex
I'm using version 4.0.3 of MAMP along with phpmyadmin. The top of /Applications/MAMP/bin/phpMyAdmin/libraries/config.default.php reads:
DO NOT EDIT THIS FILE, EDIT config.inc.php INSTEAD !!!
Changing the following line in /Applications/MAMP/bin/phpMyAdmin/config.inc.php and restarting MAMP worked for me.
$cfg['ExecTimeLimit'] = 0;
If using Cpanel/WHM the location of file config.default.php
is under
/usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries
and you should change the $cfg['ExecTimeLimit'] = 300;
to $cfg['ExecTimeLimit'] = 0;
To increase the phpMyAdmin Session Timeout, open config.inc.php in the root phpMyAdmin directory and add this setting (anywhere).
$cfg['LoginCookieValidity'] = <your_new_timeout>;
Where is some number larger than 1800.
Note:
Always keep on mind that a short cookie lifetime is all well and good for the development server. So do not do this on your production server.
Reference
I had the same issue and I used command line in order to import the SQL file. This method has 3 advantages:
If you want to do this just follow this 3 steps:
Navigate to this path (i use wamp):
C:\wamp\bin\mysql\mysql5.6.17\bin>
Copy your sql file inside this path (ex file.sql)
Run this command:
mysql -u username -p database_name < file.sql
Note: if you already have your msql enviroment variable path set, you don't need to move your file.sql in the bin directory and you should only navigate to the path of the file.
I had this issue too and tried different memory expansion techniques I found on the web but had more troubles with it.
I resolved to using the MySQL console source
command, and of course you don't have to worry about phpMyAdmin or PHP maximum execution time and limits.
Syntax: source c:\path\to\dump_file.sql
Note: It's better to specify an absolute path to the dump file since the mysql working directory might not be known.
I was having the issue previously in XAMPP
localhost with phpmyadmin version 4.2.11.
Increasing the timeout in php.ini
didn't helped either.
Then I edited xampp\phpMyAdmin\libraries\config.default.php
to change the value of $cfg['ExecTimeLimit']
, which was 300 by default.
That solved my issue.