美国服务器连接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; 刷新数据库。
购买使用一诺网络美国服务器,可以极大降低初创企业、中小企业以及个人开发者等用户群体的整体IT使用成本,无需亲自搭建基础设施、简化了运维和管理的日常工作量,使用户能够更专注于自身的业务发展和创新。美国服务器低至49元/月,购买链接:https://www.enuoidc.com/vpszq.html?typeid=3