简体   繁体   中英

Java SE Connect desktop app to online database

please, I have a java desktop app, I want a way to connect my desktop app to an online database. I want to know the technologies that are available to do this.

You can just use JDBC.

You have to create a connection with the properties of your database for example :

Connection connection = DriverManager.getConnection(
        "jdbc:mysql://server_ip/database_name", "username", "password");

And that's it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM