这篇文章主要介绍了连接mysql时出现1449与1045异常解决办法的相关资料,通过ip链接mysql的时候会出现1499与1054错误异常的情况,这里提供解决办法,需要的朋友可以参考下
连接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; 刷新数据库。
以上就是MySQL连接时出现1449与1045异常解决办法详解的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号