Jump to content

Database Connections


someguy567

Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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