Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maximum execution time of 360 seconds exceeded in C:\wamp\apps\phpmyadmin4.1.14

Im trying to backup a wordpress website from host and move it back on my local host and keep it as a sample for rebuilding. If have any workaround or maybe other methods I`m all ears

I backedup my website and database also, but when I`m trying to "Import" my sql database I always get the fallowing error Fatal error: Maximum execution time of 360 seconds exceeded in

C:\wamp\apps\phpmyadmin4.1.14\libraries\import.lib.php on line 345

The database is kind of big 203MB and I archived it aiesecbu_achieve.sql.zip 55.8 MB

I can say that I`ve already tried this: Fatal error: Maximum execution exceeded and modifying my php.ini

post_max_size = 400M
upload_max_filesize = 250M
memory_limit = 128M

I have uploaded my database for you to test it if you want(maybe it`s something wrong with it) and a screenshot

https://www.dropbox.com/s/cx9wava7sptf4km/mysql.jpg?dl=0

like image 421
Daniel Avatar asked Dec 02 '14 08:12

Daniel


People also ask

How to increase Maximum execution time in wamp?

In your php/php. ini change max_execution_time = 360 to 99999 . You can add ini_set('max_execution_time', 600); //600 seconds = 10 minutes line on top of your php file.

How can we increase maximum execution time of 60 seconds exceeded in xampp?

Your answer Look for : $cfg['ExecTimeLimit'] = 600; You can change '600' to any higher value, like '6000'. Maximum execution time in seconds is (0 for no limit). This will fix your error.

How can you increase the maximum execution time of a script in PHP?

To increase the script execution time, you can use the following snippet at the top of your script. ini_set ( 'max_execution_time' , '300' ); In the above example, it would set the max_execution_time directive to 300 seconds.


2 Answers

You can try to use mysql console.

  1. Run cmd command
  2. Type c: or d: on command prompt. This will be based on your WAMP server installations.
  3. Assuming you have installed wamp on D: drive.
  4. D:\>cd wamp
  5. D:\wamp>cd bin
  6. D:\wamp\bin>cd mysql
  7. D:\wamp\bin\mysql>cd mysql15.1.36
  8. D:\wamp\bin\mysql\mysql15.1.36>cd bin
  9. D:\wamp\bin\mysql\mysql15.1.36\bin>mysql.exe -u root
  10. use database
  11. source source.sql

Bassicaly you login into mysql, use database determines which database you want to use, source /source/to/source.sql determines which sql you want to run. Pretty easy and efficient.

like image 135
JTC Avatar answered Sep 28 '22 04:09

JTC


As you have phpMyAdmin4.1.14 installed I assume you are using WAMPServer 2.5

In WAMPServer 2.5 the PHP resources used by phpMyAdmin are controlled from the phpMyAdmin alias config file. It was changed for exactly these situations, so you dont have to change the php.ini to add a ridiculously large values to parameters that effect your whole PHP environment.

So to increase the relevant paameters you would do this :-

Edit \wamp\alias\phpmyadmin.conf which should look like this by default

Alias /phpmyadmin "c:/wamp/apps/phpmyadmin4.1.14/"

# to give access to phpmyadmin from outside 
# replace the lines
#
# Require local
#
# by
#
# Require all granted
#

<Directory "c:/wamp/apps/phpmyadmin4.1.14/">
   Options Indexes FollowSymLinks MultiViews
   AllowOverride all
  <IfDefine APACHE24>
    Require local
  </IfDefine>
  <IfDefine !APACHE24>
    Order Deny,Allow
      Deny from all
      Allow from localhost ::1 127.0.0.1
    </IfDefine>
  php_admin_value upload_max_filesize 128M
  php_admin_value post_max_size 128M
  php_admin_value max_execution_time 360
  php_admin_value max_input_time 360
</Directory>

Now change the parameters here, so they only effect what happens when you are running phpMyAdmin.

These are the parameters you should amend

  php_admin_value upload_max_filesize 500M      <-- and probably this
  php_admin_value post_max_size 128M
  php_admin_value max_execution_time 620        <-- this for a start
  php_admin_value max_input_time 360

But basically try a modification and see if it works, if not depending on the error amend the relevant parameter.

Dont forget to restart Apache after each change you make to this file

Oh and dont forget to undo the changes you made to php.ini

like image 26
RiggsFolly Avatar answered Sep 28 '22 04:09

RiggsFolly