Jump to content
xisto Community
Sign in to follow this  
Demonhawk

Accessing And Retrieving Data From A Databases.

Recommended Posts

Well I have a question about how to go about using say a MySql database and being able to connect to it from a Java console or applet program and retrieve data and then put it into some int or string or something depending on what the datatype it is. I wanna implement this in a RPG I am making because it would make life so much simpler, right now I have to do like 5 lines of code for a single location for a text based rpg, if I tried to make the game more complicated with graphics and what not I think it would become ridiculous. So if anyone could help it would be much appreciated :D

Share this post


Link to post
Share on other sites

To connect a MySql database with Java you need the MySQL Connector/J that is a native Java driver that converts JDBC (Java Database Connectivity) calls into the network protocol used by the MySQL database, find more info visiting: Using MySql with Java.

Best regards,

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.