我在 Xcart 下运行我的商店,我在网络浏览器上收到以下错误:
INVALID SQL: 1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_MAX_JOIN_SIZE=1073741824' at line 1
SQL QUERY FAILURE:SET OPTION SQL_MAX_JOIN_SIZE=1073741824
INVALID SQL: 1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_BIG_SELECTS=1' at line 1
SQL QUERY FAILURE:SET OPTION SQL_BIG_SELECTS=1
INVALID SQL: 1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_BIG_SELECTS=1' at line 1
SQL QUERY FAILURE:SET OPTION SQL_BIG_SELECTS=1
这是什么原因导致我可以清除错误?
谢谢!
最佳答案
看来您的 MySQL 服务器已更新。
替换所有字符串,例如
'设置选项 SQL_MAX_JOIN_SIZE'
对这些
'SET SESSION MAX_JOIN_SIZE'
基于 unix 的主机的命令
sed -i 's/SET OPTION/SET SESSION/' $(grep --include='*.php' -rl 'SET OPTION ' ~/www/xcart_4_6_x)
关于mysql - sql语法引起的xcart错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40665846/