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........

解决方案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

check whether u are using correct mysql connector jar in classpath.

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐