Click here to Skip to main content
15,883,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

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
 
Share this answer
 
check whether u are using correct mysql connector jar in classpath.
 
Share this answer
 
Comments
markkuk 1-Feb-13 14:37pm    
MySQL Workbench isn't written in Java, so your answer is completely irrelevant.
Double click the windows(or others) icon, find and click MySQL installer --, click the MySQL server configuration item quick action (if there is no MySQL server, click add on the right to find and add it), and then follow it foolishly
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900