Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
- try {
- Class.forName("com.mysql.jdbc.Driver");
- connection = DriverManager.getConnection("jdbc:mysql://91.121.170.224:3306/db140", "user140",
- "mofpZO3g");
- statement = connection.createStatement();
- String query = "select * from players";
- resultset = statement.executeQuery(query);
- while (resultset.next()) {
- Log.i(TAG, "Что то есть");
- }
- Log.i(TAG, "Агась");
- } catch (Exception e) {
- Log.e(TAG, "Ошибка загрузки базы: ", e);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement