Click here to Skip to main content
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 2: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 OriginalGriff 195
1 ProgramFOX 130
2 Maciej Los 105
3 Afzaal Ahmad Zeeshan 82
4 Sergey Alexandrovich Kryukov 75
0 OriginalGriff 6,564
1 Sergey Alexandrovich Kryukov 6,048
2 DamithSL 5,228
3 Manas Bhardwaj 4,717
4 Maciej Los 4,150


Advertise | Privacy | Mobile
Web02 | 2.8.1411022.1 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2014
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