Click here to Skip to main content
11,577,429 members (40,621 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 DamithSL 155
1 Afzaal Ahmad Zeeshan 125
2 OriginalGriff 115
3 Richard MacCutchan 100
4 Abhinav S 90
0 OriginalGriff 820
1 Sergey Alexandrovich Kryukov 676
2 Abhinav S 528
3 F-ES Sitecore 420
4 Suvendu Shekhar Giri 375


Advertise | Privacy | Mobile
Web04 | 2.8.150603.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