连接mysql时出现1449与1045异常解决办法
mysql 1449 : the user specified as a definer ('root'@'%') does not exist 解决方法
把sql导到本地,执行存储过程 或者 查看视频报错:
mysql 1449 : the user specified as a definer ('root'@'%') does not exist 解决方法
权限问题,授权 给 root 所有sql 权限
mysql> grant all privileges on *.* to root@"%" identified by "."; sqlexception: the user specified as a definer ('ebook'@'%') does not exist:解决办法 grant all privileges on *.* to ebook@"%" identified by "."; query ok, 0 rows affected (0.00 sec) mysql> flush privileges; query ok, 0 rows affected (0.00 sec) #mysql
连接时出现1045异常:
如果是mysql 5.6以前的,输入update mysql.user set password=password('123456') where user='root';
如果是mysql 5.6以后的,输入update mysql.user set authentication_string=password('root') where user='root';
这是由于5.6以后user表中没有password字段。
输入flush privileges; 刷新数据库。
如有疑问请留言或者到本站社区交流讨论,感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
您可能感兴趣的文章:
如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!
网友评论