Com. MySQL. JDBC. Exceptions. jdbc4.communicationsexception: communications link failure

Source: Internet
Author: User
Tags netbeans

Http://netbeans-org.1045718.n5.nabble.com/com-mysql-jdbc-exceptions-jdbc4-CommunicationsException-Communications-link-failure-td2950072.html

It sounds likeMySQL
Server isn' t running.

If you are using Windows, make sureMysqld
-Nt.exe
Is running. You can use task manager to see if the service is running
And Control Panel's Administrative Tools | Services dialog to start
Service if it is not. On myComputer
The service name isMySQL
.


Janpihlgren wrote:


Just installed netbeans 6.5 and now try to run som javaprogram that require connection to MySQL
-Database.


I get this errormessage:


Com
. MySQL
. JDBC
. Exceptions
. Jdbc4
. Communicationsexception
: Communications
Link
Failure


And a point to these rows int the program:


String _ url =" JDBC
: MySQL
: // Localhost: 3306/"+ database;


Connection conn = drivermanager. getconnection (_ URL, user, PWD );


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.