dongyuanliao6204 2014-05-16 16:31
浏览 120

phpMyAdmin致命错误:允许的内存大小

I'm using Laravel on localhost for a project. There is a function (for searching posts) that needs a table to be in MyISAM. So I went to my table 'posts' and select MyISAM in the 'Operations' panel.

But after that I have this error :

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2102513 bytes) in /Applications/MAMP/bin/phpMyAdmin/index.php on line 16" and I cannot access to any page of my PhpMyAdmin. I'm pretty worried.

I tried to search a solution, I increase the memory limit in my php.ini but it didn't change a thing... If you have any idea, I'll be very glad to read it !

Thanks ;)

  • 写回答

1条回答 默认 最新

  • dougai8673 2014-05-16 17:08
    关注

    I've run into a similar problem before with phpMyAdmin. I'm assuming that this only happens when you click on one specific table? Did you forget to put indexes on that table or remove the primary key?

    If PMA cannot find a primary key for a table instead of generating simple links like:

    index.php?action=delete&pk=1
    

    it will use every single column like:

    index.php?action=delete&col1=foo&col2=bar&col3=baz&col4=...
    

    which can easily exhaust PHP's memory limit if there's a lot of data stored in the table.

    If you have another program to admin you mySQL DBs like MySQL Workbench, or HeidiSQL use that to fix the Primary Key on the table. If you don't, you're going to have to start cranking up PHP's memory limit until you can load that table in PMA. Just remember to turn it back down once you've fixed it.

    评论

报告相同问题?

悬赏问题

  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
  • ¥15 路易威登官网 里边的参数逆向
  • ¥15 Arduino无法同时连接多个hx711模块,如何解决?
  • ¥50 需求一个up主付费课程
  • ¥20 模型在y分布之外的数据上预测能力不好如何解决
  • ¥15 processing提取音乐节奏