通过ip连接MySQL时出现1449、1045异常
2017-04-20 09:56
393 查看
mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法
把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; 刷新数据库。
把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异常解决办法
- 解决Navicat连接的时候出现了1045 -Access denied for user'root'@'ip'(using password :yes)--mysql
- 解决MySQL-Front连接MySQL出现1045错误
- 连接MySQL出现1045错误 解决方法
- Entity Framework连接MySQL,出现报错:由于出现以下异常,无法生成模型:“表“TableDetails”中列“IsPrimaryKey”的值为DBNull.
- Linux连接MySQL出现1045错误 解决方法
- 关于WAMPserver中phpadmin连接mysql时出现#1045无法登陆mysql的解决方法
- 通过TCP/IP方式连接 “不能上到 mysqL 服务器连接 ”解决方法
- mysql 通过IP连接
- (笔记)远程连接MySQL出现ERROR 2003 (HY000): Can't connect to MySQL server on ip (111)
- Mysql连接出现:1045-Access denied for user ...(using password :YES)
- navicat连接mysql时出现1045错误的解决方法
- [原创]Delphi通过MyODBC连接MySql时出现“灾难性故障”的解决方法
- 花了几个小时JDBC连接sql server 2012出现的异常com.microsoft.sqlserver.jdbc.SQLServerException: 通过端口 1433 ...解决了!
- Linux连接MySQL出现1045错误 解决方法
- mysql连接时1045异常:access denied for user root
- 在用Navicat连接mysql时出错了 出现1045的错误提示
- java 连接数据库sql出现”通过端口 1433 连接到主机 localhost 的 TCP/IP 连接失败“
- MYSQL连接一段时间不操作后出现异常的解决方案
- 解决用Mysql 使用navicate远程连接数据库出现1045 access denied for user 'root'@'localhost' using password yes