高版本MySQL遇到SHOW DATABASES报错问题

本文描述了在使用高版本MySQL时遇到执行SHOW DATABASES命令报错的问题,分析了错误产生的原因,并提供了针对性的解决方案。
摘要由CSDN通过智能技术生成

问题描述:

使用MySQL中的SHOW DATABASES命令报错:ERROR 1449 (HY000): The user specified as a definer ('mysql.infoschema'@'localhost') does not exist

在网上找到的解决办法myql_upgrade -u root -p;(此方法在低版本的可用),我的mysql的版本是8.0.22,所有又爆出以下错误:

mysql_upgrade: [Warning] Using a password on the command line interface can be insecure.
The mysql_upgrade client is now deprecated. The actions executed by the upgrade client are now done by the server.
To upgrade, please start the new MySQL binary with the older data directory. Repairing user tables is done automatical
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值