Jump to content

Database Connections


Recommended Posts

Posted (edited)
14 minutes ago, someguy567 said:

For those of you that have used a Database for your bots, how have you dealt with having lots of connections to your database? Did you use a database pool? Because I tried using one and OSBot just denies me from using it in the script

Scripters host a PHP file on their webserver and submit data through that

 

	URL submit = new URL(http://yoururl.com/uploaddata.php?name=dog&expgained=1");
				
				URLConnection con = submit.openConnection();
				con.setDoInput(true);
				con.setDoOutput(true);
				con.setUseCaches(false);
				final BufferedReader rd = new BufferedReader(
						new InputStreamReader(con.getInputStream()));
				rd.close();

You would then take that data, connect to SQL or w.e and process it on the server side

Edited by Tom
Posted
39 minutes ago, Tom said:

Scripters host a PHP file on their webserver and submit data through that

 


	URL submit = new URL(http://yoururl.com/uploaddata.php?name=dog&expgained=1");
				
				URLConnection con = submit.openConnection();
				con.setDoInput(true);
				con.setDoOutput(true);
				con.setUseCaches(false);
				final BufferedReader rd = new BufferedReader(
						new InputStreamReader(con.getInputStream()));
				rd.close();

You would then take that data, connect to SQL or w.e and process it on the server side

What he said. Just make an API using whatever web-development languages you know, and use that to do whatever you need.

53 minutes ago, KEVzilla said:

Why would you need to use a database?

Also, databases are used for a lot of stuff. Automatic account switching, muling, statistics of your botting etc.

Posted
8 minutes ago, Medusaa said:

What he said. Just make an API using whatever web-development languages you know, and use that to do whatever you need.

Also, databases are used for a lot of stuff. Automatic account switching, muling, statistics of your botting etc.

I am very aware, lol. Figured he wanted to run his database locally

  • Boge 1

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...