Android应用程序访问远程数据库(mysql) is not allowed to connect to this MySQL server
2014-03-08 10:07
567 查看
今天帮老师调试一个代码的时候,遇到android连接远程mysql数据库的问题,记下来方便之后查阅!
Logcat异常信息:远程mysql_java.sql.SQLException: null, message from server: "Host '192.168.1.115'
is not allowed to connect to this MySQL server
这句话的意思是mysql数据库不允许远程来访问它!
那么进入到你的mysql存放处:自己的电脑,或者租用的服务器>>mysql -u root -p;
>>输入root密码
>>use mysql;
>>update user set host ='%' where user ='root';
这样就全部搞定了!!!
相关文章推荐
- 解决Navicat 报错:1130-host ... is not allowed to connect to this MySql server,MySQL不允许从远程访问的方法
- 数据库访问报错:【1130-Host 'xxxxx' is not allowed to connect to this MySQL server】
- mysql 远程访问不行解决方法,Host '' is not allowed to connect to this MySQL server
- mysql 远程访问不行解决方法 Host is not allowed to connect to this MySQL server
- 本地连接服务器的mysql时Host (服务器ip地址) is not allowed to connect to this MySQL server 的解决方法
- 授权访问MySQL Server(远程连接MYSQL提示Host is not allowed to connect to this MySQL server)
- 解决Navicat 报错:1130-host ... is not allowed to connect to this MySql server,MySQL不允许从远程访问的方法
- mysql 远程访问不行解决方法 Host is not allowed to connect to this MySQL server
- 解决mysql本地可访问,远程无法访问的问题 Host is not allowed to connect to this MySQL server
- mysql 远程访问不行解决方法 Host is not allowed to connect to this MySQL server
- HOSt ip is not allowed to connect to this MySql server, MYSQL添加远程用户或允许远程访问三种方法
- HOSt ip is not allowed to connect to this MySql server, MYSQL添加远程用户或允许远程访问三种方法
- MySQL:远程访问权限,is not allowed to connect to this MySQL server
- mysql 远程访问不行解决方法 Host is not allowed to connect to this MySQL server
- mysql远程访问 登录ERROR 1130: is not allowed to connect to this MySQL server解决办法
- 解决Navicat 报错:1130-host ... is not allowed to connect to this MySql server,MySQL不允许从远程访问的方法 .
- mysql 远程访问不行解决方法 Host is not allowed to connect to this MySQL server
- 解决Navicat 报错:1130-host ... is not allowed to connect to this MySql server,MySQL不允许从远程访问的方法 .
- mysql 远程访问不行解决方法 Host is not allowed to connect to this MySQL server
- mysql 远程访问不行解决方法 Host is not allowed to connect to this MySQL server