我已经为前端的virtumart开发了类别虎钳搜索功能。 它在我们的本地服务器上工作正常但是当我上传到服务器上时它给了我mysql连接超时错误。它向我显示如下,
Attention no standard shopper group set MySQL server has gone away SQL=SELECT * FROM `sxrth_virtuemart_shoppergroups` WHERE `default` = "2" AND (`virtuemart_vendor_id` = "1" OR `shared` = "1") AND `published`="1"
Attention no standard shopper group set MySQL server has gone away SQL=SELECT * FROM `sxrth_virtuemart_shoppergroups` WHERE `default` = "2" AND (`virtuemart_vendor_id` = "1" OR `shared` = "1") AND `published`="1"
No Shop Currency defined! Go to http://www.domain.com/administrator/index.php?option=com_virtuemart&view=user&task=editshop
(我已经为这个链接应用了virtmart的货币和接受货币清单)
我尝试了几个选项,如
set_time_limit(0);
ini_set('mysql.connect_timeout', 14400);
ini_set('default_socket_timeout', 14400);
但这对我不起作用。
我还在publc_html文件夹中创建了php.ini文件。它看起来像下面
register_globals = off
allow_url_fopen = off
mysql.connect_timeout = 600
mysql.default_socket = 600
expose_php = Off
max_input_time = 600
max_execution_time 600
memory_limit = 360M
这仍然不适合我
我应该采取哪些措施来获得解决方案。 任何帮助都将非常感激。
答案 0 :(得分:2)
最后,在做了以下事情后,它对我有用 1)给我加入的所有表格索引 2)在根文件夹中创建了一个php.ini并添加了以下行
mysql.connect_timeout = 600
max_input_time = 600
max_execution_time 600
memory_limit = 360M
mysqli.reconnect = On