gpt4 book ai didi

php - mysql super 用户错误: definer = root @localhost

转载 作者:行者123 更新时间:2023-11-30 23:45:09 24 4
gpt4 key购买 nike

当我尝试上传我的数据库时抛出以下错误。我已经在终端和通过 phpmyadmin 尝试过。我得到了同样的错误:

SQL query:

DELIMITER ; ;

/*!50003 CREATE*//*!50017 DEFINER=`root`@`localhost`*//*!50003 TRIGGER trg_catalog_category_entity_after_insert AFTER INSERT ON catalog_category_entity FOR EACH ROW BEGIN INSERT IGNORE INTO `enterprise_url_rewrite_category_cl` (`entity_id`) VALUES (NEW.`entity_id`); INSERT IGNORE INTO `catalog_category_product_cat_cl` (`category_id`) VALUES (NEW.`entity_id`); INSERT IGNORE INTO `catalog_category_flat_cl` (`entity_id`) VALUES (NEW.`entity_id`); END */ ; ;


MySQL said: Documentation

#1227 - Access denied; you need (at least one of) the SUPER privilege(s) for this operation

由于共享服务器的情况,在终端中我无法访问 root。

我从另一家商店提取了这个数据库,并将其设置在另一台服务器上。如果我真的能克服这个错误。

我尝试过更改用户、添加新用户以及更新权限和授权,但似乎没有任何效果。

最佳答案

使用root权限登录

mysql -u root -p

试试这个

GRANT ALL PRIVILEGES ON `%`.* TO 'root'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;

对我有用

关于php - mysql super 用户错误: definer = root @localhost,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42043788/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com