问题:Ubuntu20.04虚拟机部署了MySQL8.0.32,本机Navicat连接MySQL,测试连接成功,但是确定后连接报错:1449 - The user specified as a definer ('mysqlinfoschema'@'localhost') does not exist。
解决方案:‘mysql.infoschema’@‘localhost’ 是一个用户,检查时该用户可以查询到已经存在,但是show tables报错,并不存在,不能创建此用户,需要先删除再次创建,并且赋予权限给这个用户后,Navicat尝试连接,连接成功,完美。
执行过程如下:
root@ubuntu:~$ sudo mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 542
Server version: 8.0.32-0ubuntu0.20.04.2 (Ubuntu)
Copyright (c) 2000, 2023, Oracle and/or its affi