This is a mobile optimized page that loads fast, if you want to load the real page, click this text.

Cách khắc phục lỗi Maximum execution time of 300 seconds exceeded

VNZ-ROAD

NEXTVNZ
Lỗi này thường gặp khi bạn import database lớn và mất nhiều thời gian, dù bạn đã chọn Allow the interruption of an import in case the script detects it is close to the PHP timeout limit. (This might be a good way to import large files, however it can break transactions.) nhưng vẫn có thể gặp lỗi

Maximum execution time of 300 seconds exceeded


Để khắc phục các bạn làm như sau


Nếu bạn sử dụng WAMP bạn làm theo cách sau

Tìm

C:\wamp\apps\phpmyadmin3.4.10.1\libraries (tùy vào nơi cài đặt trên máy bạn)

Mở config.default.php và thay đổi giá trị $cfg['ExecTimeLimit'] về 0:

$cfg['ExecTimeLimit'] = 0;
Bạn sẽ import thoải mái đủ thời gian


Xampp

  1. Tìm xampp\phpMyAdmin\
  2. Mở config.inc.php
  3. Tìm dòng $cfg['ExecTimeLimit'] = 300;
  4. Đổi về 0 cho unlimited
  5. Nếu không tìm thấy ở đó thì bạn vào đây xampp\phpMyAdmin\libraries và mở file config.default.php
  6. Tìm dòng $cfg['ExecTimeLimit'] = 300;
  7. Đổi thành 0 cho unlimited
  8. Save và restart the server