如何使用Xampp服务器增加phpMyAdmin中的导入大小限制?

Roh*_*rma 42 html css php wordpress

有谁知道你是否或如何增加phpMyAdmin中的导入大小限制?目前我的服务器限制为2MB.

请注意,这与php.ini中的upload_max_filesize不同.该值设置为2MB.

我需要将一个表导入到我的一个数据库中,导入的phpMyAdmin限制为50MB或更多MB数据阻止我这样做.

Ank*_*rma 61

changes into the php.ini file

post_max_size = 800M 
upload_max_filesize = 800M 
max_execution_time = 5000 
max_input_time = 5000 
memory_limit = 1000M 

now restart for the changes to take effect
Run Code Online (Sandbox Code Playgroud)


Abe*_*sey 34

php.ini中更改这些值

post_max_size = 750M 
upload_max_filesize = 750M 
max_execution_time = 5000 
max_input_time = 5000 
memory_limit = 1000M 
Run Code Online (Sandbox Code Playgroud)

然后重新启动Wamp以使更改生效.这需要一些时间.如果您收到以下错误:

如果要完成导入,请通过脚本超时,请重新提交相同的zip文件并继续导入.

然后phpMyAdminphpMyAdmin\libraries\config.default.php更新配置

/**
 * maximum execution time in seconds (0 for no limit)
 *
 * @global integer $cfg['ExecTimeLimit']
 */
$cfg['ExecTimeLimit'] = 0;
Run Code Online (Sandbox Code Playgroud)


小智 5

更改php.ini文件中的以下行:

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
max_input_time = 500000
memory_limit = 256M
Run Code Online (Sandbox Code Playgroud)