Click here to Skip to main content
14,304,561 members
   

Java

 
GeneralRe: Merge sort question Pin
Member 1408406811-Dec-18 0:30
memberMember 1408406811-Dec-18 0:30 
QuestionBuffer reading is hanging while reading ? Pin
GiteHrudaya10-Dec-18 1:28
memberGiteHrudaya10-Dec-18 1:28 
AnswerRe: Buffer reading is hanging while reading ? Pin
Richard MacCutchan10-Dec-18 4:41
protectorRichard MacCutchan10-Dec-18 4:41 
AnswerRe: Buffer reading is hanging while reading ? Pin
jschell15-Dec-18 7:17
memberjschell15-Dec-18 7:17 
QuestionJava Gui Project Pin
Member 140826818-Dec-18 22:26
memberMember 140826818-Dec-18 22:26 
AnswerRe: Java Gui Project Pin
Peter_in_27808-Dec-18 23:09
professionalPeter_in_27808-Dec-18 23:09 
AnswerRe: Java Gui Project Pin
Richard MacCutchan9-Dec-18 2:00
protectorRichard MacCutchan9-Dec-18 2:00 
QuestionDatabase Connection from Java Pin
prithaa8-Dec-18 6:07
memberprithaa8-Dec-18 6:07 
Hello,

I am trying to connect to mysql from Java with the following but getting this error
Exception in thread "main" Communications link failure

package testPackage;

import java.sql.Connection;
import java.sql.DriverManager;
import java.util.Properties;

public class Main {

	public static void main(String[] args) throws Exception {
		// TODO Auto-generated method stub
				  
		    try {
		      Class.forName("com.mysql.jdbc.Driver");
		      Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/student?useSSL=true","root","success");  
		      System.out.print("Database is connected !");
			  con.close();				
	}
		    catch(Exception e)
		    {
		    	System.out.println(e.getMessage());
		    	throw e;
		    }
		    	
		    }

}

GeneralRe: Database Connection from Java Pin
Richard MacCutchan8-Dec-18 6:54
protectorRichard MacCutchan8-Dec-18 6:54 
Questionhelp turning code into gui Pin
Member 140790227-Dec-18 11:55
memberMember 140790227-Dec-18 11:55 
AnswerRe: help turning code into gui Pin
Richard MacCutchan7-Dec-18 22:21
protectorRichard MacCutchan7-Dec-18 22:21 
QuestionObjectInputStream block on server side Pin
Valentinor4-Dec-18 4:42
memberValentinor4-Dec-18 4:42 
Questionresearch methodology Pin
Member 140745404-Dec-18 1:45
memberMember 140745404-Dec-18 1:45 
AnswerRe: research methodology Pin
Richard MacCutchan4-Dec-18 2:40
protectorRichard MacCutchan4-Dec-18 2:40 
Questionjava Pin
GiteHrudaya3-Dec-18 18:38
memberGiteHrudaya3-Dec-18 18:38 
QuestionRe: java Pin
Richard MacCutchan3-Dec-18 22:01
protectorRichard MacCutchan3-Dec-18 22:01 
QuestionWrite a Test to check if some config records exist in database Pin
maryam.saboor30-Nov-18 21:41
professionalmaryam.saboor30-Nov-18 21:41 
AnswerRe: Write a Test to check if some config records exist in database Pin
Richard MacCutchan30-Nov-18 22:23
protectorRichard MacCutchan30-Nov-18 22:23 
GeneralRe: Write a Test to check if some config records exist in database Pin
maryam.saboor30-Nov-18 23:14
professionalmaryam.saboor30-Nov-18 23:14 
GeneralRe: Write a Test to check if some config records exist in database Pin
Richard MacCutchan30-Nov-18 23:19
protectorRichard MacCutchan30-Nov-18 23:19 
GeneralRe: Write a Test to check if some config records exist in database Pin
maryam.saboor30-Nov-18 23:49
professionalmaryam.saboor30-Nov-18 23:49 
GeneralMessage Closed Pin
12-Dec-18 4:59
memberMember 1408587712-Dec-18 4:59 
QuestionFind and replace sTring in Docx and Doc file using Java code Pin
Member 1406885427-Nov-18 1:26
memberMember 1406885427-Nov-18 1:26 
SuggestionRe: Find and replace sTring in Docx and Doc file using Java code Pin
Richard MacCutchan27-Nov-18 1:38
protectorRichard MacCutchan27-Nov-18 1:38 
Questionjava Pin
mohit gite14-Nov-18 23:16
membermohit gite14-Nov-18 23:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.