I've tried to connect to mysql using DefaultHttpClient, but so far no success. Error connection refused.
I can telnet MySQL using telnet 127.0.0.1 3306
enter code here
I'am using this example from apache website
DefaultHttpClient httpclient = new DefaultHttpClient();
httpclient.getCredentialsProvider().setCredentials(
new AuthScope("localhost", 3306),
new UsernamePasswordCredentials("username", "password"));
HttpGet httpget = new HttpGet("https://localhost:3306");
System.out.println("executing request" + httpget.getRequestLine());
HttpResponse response = httpclient.execute(httpget);
HttpEntity entity = response.getEntity();
enter code here
am I missing some concept for instance do I need a webserver or server side language like PHP?
I want to login, perform select, etc using http is that possible?
Regards,