【发布时间】:2021-04-22 14:57:47
【问题描述】:
嗨,我正在使用这个 Laravel 包 https://github.com/nicolaslopezj/searchable
这是我的代码:
$RelatedProducts = Product::where('product_status', 1)
->search($product->product_name)
->with('images')
->take(10)->get();
它在我的本地机器 (XAMPP-Windows) 上工作正常,但在我的 Linux 共享主机上却不行
当我搜索大的东西时,它会返回此错误:
我想我必须更改 SQL 配置文件,但在共享主机上他们不允许这样做,有没有其他方法可以做到这一点?
SQLSTATE[HY000]: General error: 1436 Thread stack overrun: 230160 bytes used of a 262144 byte stack, and 32000 bytes needed.
【问题讨论】: