数据库show databases/show tables报错

报错内容:ERROR 1449 (HY000): The user specified as a definer ('mysql.infoschema'@'localhost') does not exist

解决方案:创建该用户,并授权

CREATE USER 'mysql.infoschema'@'%';
GRANT ALL PRIVILEGES ON *.* TO "mysql.infoschema"@"%";
FLUSH PRIVILEGES;

你可能感兴趣的:(数据库,数据库)