How to fix phpmyadmin error, incorrect format parameter that appeared while importing a database?

phpMyAdmin Error - incorrect format parameter might appear due to multiple reasons such as:

  • Execution of a script exceeding the defined maximum execution time.
  • Parsing of requested input data exceeds the defined maximum input parsing time.
  • Script needing operating memory higher than the one defined in memory limit.
  • Size of post data higher than the defined maximum post data size.
  • Size of the file being uploaded higher than the defined maximum file size.

All of the above stated settings are defined in php.ini file whose path is xampp/php/php.ini. You can open the xampp application and click on the config option beside the apache controls and click on the php.ini from the dropdown list that appears.

Search for the above stated settings with the help of the phrases stated below and set their values higher as needed. Here's my personal settings.

max_execution_time = 3000
max_input_time = 60
memory_limit = 128M
post_max_size = 200M
upload_max_filesize = 200M

Apart from those changes, it's better to ensure the collation of the newly created database is exactly the same as the one which is being imported to avoid further issues within the application because of the characters.

Restart your apache server and check if it works for you. In most of the cases, this problem occurs because of the size of the database file being imported and the time it takes to get executed. You can compress the database file to a .zip file and try to import it.

If the error still exists, open the xampp/phpmyadmin/libraries/config.default.php and disable the script execution time limit. Search for the phrase ExecTimeLimit as show below.

$cfg['ExecTimeLimit'] = 300;

All you have to do is change the ExecTimeLimit value to 0 to get it disabled.

$cfg['ExecTimeLimit'] = 0;

Add a comment if your problem still persists and we'll try to explore it and get solutions.

转载于:https://www.cnblogs.com/andingding-blog/p/10067361.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值