文章目录
Windows下操作
- 报错信息1
essage from server: “Host ‘admin25613’ is not allowed to connect to this MySQL server” Attempt to invoke interface method ‘java.sql.PreparedStatement java.sql.Connection.prepareStatement(java.lang.String)’ on a null object reference
步骤一
windows设置mysql可以远程连接
远程连接
步骤二
报错信息2
数据库加载驱动失败
可能是Android版本过高,需要使用驱动加载为
com.mysql.cj.jdbc.Driver;
步骤三
配置信息出错
数据库中返回的内容为null