当我将数据库上传到服务器时,出现此错误
#1227-访问被拒绝;您需要(至少一种)超级 此操作的特权
SQL查询:文档
/*!50003 CREATE*/
/*!50017 DEFINER=`coinstourb_admin`@`localhost`*/
/*!50003 TRIGGER after_deposits_insert
AFTER INSERT ON hm2_deposits
FOR EACH ROW BEGIN DECLARE f INT;
SET f = (SELECT count(*) FROM hm2_user_balances WHERE user_id = NEW.user_id AND ec = NEW.ec AND type = 'active_deposit');
IF (f > 0 AND NEW.status = 'on') THEN
UPDATE hm2_user_balances SET amount = amount + NEW.actual_amount WHERE user_id = NEW.user_id AND ec = NEW.ec AND type = 'active_deposit';
ELSE
INSERT INTO hm2_user_balances SET amount = NEW.actual_amount, user_id = NEW.user_id, ec = NEW.ec, type = 'active_deposit';
END IF;
END */
这是我的数据库代码
答案 0 :(得分:0)
删除 'DEFINER = coinstourb_admin @ localhost'