mysql异常问题解决

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

drop user  `mysql.infoschema`@"localhost";
flush privileges;
create user `mysql.infoschema`@"localhost" identified by '123456';
flush privileges;

ERROR 1356 (HY000): View ‘information_schema.COLUMNS’ references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
ERROR 1356 (HY000): View ‘information_schema.SCHEMATA’ references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them

select * from user where User ='mysql.infoschema';
update user set Select_priv = 'Y' where User = 'mysql.infoschema';
flush privileges;

update mysql.user set authentication_string=password(“123456”) where user=“root” password报错

在其他数据库执行password方式生成密码直接authentication_string=xxx

grant all on . to root@’%’ identified by ‘123456’ with grant option; identified报错

最新版数据库需要密码和授权分开;
create user 'test'@'%' identified by '123456'; 
grant all on *.* to test@'%' with grant option;
grant all on *.* to root@'%' with grant option;
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值