300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > ERROR 1449 (HY000): The user specified as a definer (‘mysql.infoschema‘@‘localhost‘) does not exist

ERROR 1449 (HY000): The user specified as a definer (‘mysql.infoschema‘@‘localhost‘) does not exist

时间:2023-11-09 07:49:08

相关推荐

ERROR 1449 (HY000): The user specified as a definer (‘mysql.infoschema‘@‘localhost‘) does not exist

问题:

mysql> use sk;Database changedmysql> show tables;ERROR 1449 (HY000): The user specified as a definer ('mysql.infoschema'@'localhost') does not exist

总体办法就是给 mysql.infoschema 用户添加权限。

MySQL8.0 之后,不支持使用 grant 时隐式地创建用户,必须先创建用户,再授权

解决:

mysql> create user 'mysql.infoschema'@'%' identified by '密码';Query OK, 0 rows affected (0.01 sec)mysql> grant all privileges on *.* to 'mysql.infoschema'@'%';Query OK, 0 rows affected (0.01 sec)mysql> flush privileges;Query OK, 0 rows affected (0.01 sec)

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。