如何增加phpmyadmin的内存大小 [英] How to increase memory size for phpmyadmin

查看:130
本文介绍了如何增加phpmyadmin的内存大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在本地主机上导入magento数据库时,我遇到了一些问题.它只导入18个表,但实际上它包含383个约表.它给出了下面给出的错误

I am facing some problem when I am trying to import magento database on localhost. It just import 18 table but in actual it contain 383 approx table. It gives error given below

致命错误:在第253行的/usr/share/phpmyadmin/libraries/import.lib.php中,已用完16777216字节(允许分配2089674字节)的内存大小

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 2089674 bytes) in /usr/share/phpmyadmin/libraries/import.lib.php on line 253

此问题将如何配置. 是否需要更改php.ini?

How this problem will configure. Is there need to change php.ini?

推荐答案

使用此方法:

c:\mysql\bin\> mysql -u username -p password database_name < filename.sql

使用命令行导入

或 在php.ini中

or in php.ini

memory_limit = 256M

将此值更改为其他更大的值.但正如Dan所说,最好使用命令行.

change this to some other larger value. But as Dan said using command line is preferable.

这篇关于如何增加phpmyadmin的内存大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆