Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

MySQL Connection Failure

Hi,
I just installed Talend on a new machine. When I am trying to create a connection to a MySQL database I am getting the error "com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server"
Any Ideas? Do I need to install a new MySQL driver? If so what folder would I store this in?
Thanks!
Labels (4)
15 Replies
Anonymous
Not applicable
Author

Hi
Have you checked the correct DB version?
Maybe you need to try with Mysql 5 on tMysqlConnection.
Regards,
Pedro
janhess
Creator II
Creator II

It's a permissions problem.
Anonymous
Not applicable
Author

Thanks guys! I just needed to white list the IP.
Anonymous
Not applicable
Author

Hi
Thanks for your feedback.
Regards,
Pedro
_AnonymousUser
Specialist III
Specialist III

I am also getting same error "com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server"
Any Ideas? Do I need to install a new MySQL driver? If so what folder would I store this in? also i have
bind-address 127.0.0.1 i.e localhost in my.cnf.
Anonymous
Not applicable
Author

Hi yogeshballani,
The technical article http://stackoverflow.com/questions/2983248/com-mysql-jdbc-exceptions-jdbc4-communicationsexception-c... about the error("com.mysql.jdbc.exceptions.jdbc4.Communications Exception : Communications link) will point a light to you.

Best regards
Sabrina
Anonymous
Not applicable
Author

Hi yogeshballani,
I had faced same problem. I'm sharing here what I had done then.
Plz check the below things to identify the problem.
1. Check ur internet connection.
2. Check ur DB connection parameters settings in Talend job.
3.Check whether the user which u r using to run this job has the permissions from admin to access the respective DB.

Hope it is helpful to u.
Thanks,
Saty.
_AnonymousUser
Specialist III
Specialist III

Hi yogeshballani,
I had faced same problem. I'm sharing here what I had done then.
Plz check the below things to identify the problem.
1. Check ur internet connection.
2. Check ur DB connection parameters settings in Talend job.
3.Check whether the user which u r using to run this job has the permissions from admin to access the respective DB.

Hope it is helpful to u.
Thanks,
Saty.

Hi
I have tried every thing have re-installed Talend, MySQL and also java but still not having any success as it is connecting from remote machine but not able to connect talend with my local machine having MySQL Instance. I have already commented out bind-address in my.cnf and restarted mysql instance several times but not having success.
janhess
Creator II
Creator II

It's a permissions problem. Check the access permissions in the MySQL admin.