Click here to Skip to main content
12,455,701 members (61,230 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: MySQL
I have an error in mysql workbench for connect to the database server

Failed to Connect to MySQL at 127.0.0.1:3306 with user root

Lost connection to MySQL server at 'reading initial communication packet', system error: 111


Now i using linux ubunutu operating system and please give me sugesstion for that can't connect to server......
Please give me suggestion........
Posted 30-Jan-13 1:09am
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

1. Check that the MySQL server is installed and running
2. Check that the MySQL server is configured to listen for TCP connections in addition to Linux domain socket connections
3. Check that the MySQL user "root" (not the same as Linux "root"!) has the right to connect to the database from host 127.0.0.1
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

check whether u are using correct mysql connector jar in classpath.
  Permalink  
Comments
markkuk 1-Feb-13 14:37pm
   
MySQL Workbench isn't written in Java, so your answer is completely irrelevant.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100