shopware - shopwaredata.shipping_method_price_new_price_update 已经存在
问题描述
我尝试安装shopware 6,但每次都遇到相同的错误:
设置:
AMD 六核 6 核 x 2.8 GHz(3.3 GHz Turbo Core),16 GB 内存
PHP 7.4.15
-我尝试的最大值-
内存限制 3GB
max_execution_time 30000
最大输入时间 60000
post_max_size 1024M
上传最大文件大小 1024M
opcache.enable on
allow_url_fopen 开启
- 数据库 -
玛丽亚数据库
10.3.27-MariaDB-1:10.3.27+maria~bionic
错误
收到错误消息。URL:导入数据库消息:
{"valid":false,"errorMsg":"An exception occurred while executing 'CREATE TRIGGER shipping_method_price_new_price_update BEFORE UPDATE ON shipping_method_price\n FOR EACH ROW\n BEGIN\n IF @TRIGGER_DISABLED IS NULL OR @TRIGGER_DISABLED = 0 THEN\n IF (NEW.price != OLD.price OR (NEW.price IS NOT NULL AND OLD.price IS NULL))\n OR (NEW.currency_id != OLD.currency_id OR (NEW.currency_id IS NOT NULL AND OLD.currency_id IS NULL))\n AND (NEW.currency_price = OLD.currency_price OR (NEW.currency_price IS NULL AND OLD.currency_price IS NULL)) THEN\n SET NEW.currency_price = JSON_OBJECT(\n CONCAT(\"c\", LOWER(HEX(NEW.currency_id))),\n JSON_OBJECT(\n \"net\", NEW.price,\n \"gross\", NEW.price,\n \"linked\", false,\n \"currencyId\", LOWER(HEX(NEW.currency_id))\n )\n );\n ELSEIF (NEW.price = OLD.price OR NEW.price IS NULL)\n AND (NEW.currency_id = OLD.currency_id OR NEW.currency_id IS NULL)\n AND (NEW.currency_price != OLD.currency_price OR (OLD.currency_price IS NULL AND NEW.currency_price IS NOT NULL)) THEN\n SET NEW.price = JSON_UNQUOTE(JSON_EXTRACT(\n NEW.currency_price,\n CONCAT(\"$.\", JSON_UNQUOTE(JSON_EXTRACT(JSON_KEYS(NEW.currency_price), \"$[0]\")), \".gross\")\n )) + 0.0;\n\n SET NEW.currency_id = UNHEX(JSON_UNQUOTE(JSON_EXTRACT(\n NEW.currency_price,\n CONCAT(\"$.\", JSON_UNQUOTE(JSON_EXTRACT(JSON_KEYS(NEW.currency_price), \"$[0]\")), \".currencyId\")\n )));\n END IF;\n END IF;\n END;':\n\nSQLSTATE[HY000]: General error: 1359 Trigger 'shopwaredata.shipping_method_price_new_price_update' already exists"}
请尝试修复此错误并重新启动更新。
解决方案
一般错误:1359 触发器‘shopwaredata.shipping_method_price_new_price_update’已经存在”}
该错误表明触发器已经存在。请清理您的数据库并尝试重新运行安装。
推荐阅读
- c# - 不显眼的验证不会在单选按钮上触发
- vim - 使用 Vim 脚本复制行并增加变量中的数字
- php - 从 html 表单中提取日期和时间以在 mysql 查询中使用它们
- php - Laravel:用于开发和生产的不同 composer.json 文件
- multithreading - 用另一个线程启动 Tk.mainloop() 线程
- kotlin - 如何在 Kotlin 中简化这一点
- ethereum - 以太坊虚拟机中的数据范围
- sql - 在 SQL Server 的 ETL 提取中查找或替换缺失的数据
- c++ - 找不到 -lSDL_image
- javascript - 如何从我拥有的变量值创建条件?