phpMyAdminを使ってサイズの大きいダンプファイルをインポートしようとした際に下記のようなエラーとなる場合は、phpMyAdmin設定ファイルに記載されている制限を変更する事でエラーを回避できます。
Fatal error: Maximum execution time of 300 seconds exceeded in F:\xampp\phpMyAdmin\libraries\classes\Dbal\DbiMysqli.php on line 209

対象の設定ファイルは「config.default.php」というファイル名でphpMyAdminのインストールフォルダの中の libraries フォルダ内にあります。
インストールフォルダのパスは、ご自身の環境に読み替えてください。

config.default.phpファイル内の $cfg[‘ExecTimeLimit’] = 300; の値を変更します。
下記の例では1時間の3600という値に変更しています。
/**
* maximum execution time in seconds (0 for no limit)
*
* @global integer $cfg['ExecTimeLimit']
*/
$cfg['ExecTimeLimit'] = 3600;
変更後はWEBサービスの再起動などで設定内容を反映させます。
コメント