Click here to Skip to main content
11,640,910 members (61,640 online)
Rate this: bad
good
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 at 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
0 Mika Wendelius 380
1 OriginalGriff 205
2 DamithSL 203
3 Afzaal Ahmad Zeeshan 129
4 CPallini 125
0 Mika Wendelius 370
1 OriginalGriff 205
2 CPallini 125
3 DamithSL 105
4 Afzaal Ahmad Zeeshan 70


Advertise | Privacy | Mobile
Web03 | 2.8.150731.1 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2015
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