Answer the question
In order to leave comments, you need to log in
How to connect Android application to MySQL using JDBC?
Friends, help!
Here is the code in e.getMessage() returns the error "No Suitable Driver":
try {
//Class.forName("com.mysql.jdbc.Driver");
Connection conn = DriverManager.getConnection(
"jdbc:mysql://myserver.ru/",
"***",
"******"
);
} catch (SQLException e) {
e.getMessage();
}
Answer the question
In order to leave comments, you need to log in
Dalvik does not include a driver for MySQL, download separately - download and add the MySQL java connector library.
Firstly, SQLite, and secondly, why not make a full-fledged back-end (REST API) on the server, didn't you think that direct access to the server's database is very dangerous?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question