Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
726 views
in Technique[技术] by (71.8m points)

mysql - idea [08S01] Communications link failure

I just use IDEA recently and want to use IDEA to connect MySQL(8.0.12).but the IDEA indicate below

enter image description here

enter image description here

However, I use cmd could connect to my database,thus I did not configure out the problem.

enter image description here

I am in serah of many ways to solve this problem on tech forum but those are not working.

  1. change mysql to lower version driver
  2. set time_zone
  3. add properties on url
question from:https://stackoverflow.com/questions/65867544/idea-08s01-communications-link-failure

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

There are a couple of things to check to solve the 'Communications links' failure.

One thing in particular is to check whether your MySQL server accepts TCP connections. In your terminal, it looks like you are using named pipes.

Make sure your MySQL server allows TCP connections; check for the bind-address configuration in mysql.ini under [mysqld] section. Its value should be at least 127.0.0.1, or set it as * to bind to all (not always a good idea).

Another point is the skip_networking configuration. Check if you have that, and remove and restart MySQL server. I believe this is set by default when you are installing MySQL.

(Also note that 8.0.17 is 'ancient' already).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...