Solution to IDEA not being able to connect to MySQL port number occupation

Solution to IDEA not being able to connect to MySQL port number occupation

I can log in to MYSQL normally under the command line, and navicat can connect to MySQL normally, but IDEA cannot connect to MySQL. Emmm, what's going on. . .

Look at the error message:

insert image description here

I always thought it was a problem with the MySQL password or access rights.

Troubled for n days. . .
One day, I suddenly remembered that port number 3306 was occupied. I was also puzzled, but after checking the port number, I found that port number 3306 was actually in use by two port numbers. . .
ps: View the command for port number usage: netstat -ano
Command to disable the process: taskkill -PID <process number> -F
Could the problem be here? Try to disable one of the processes according to the PID.

insert image description here

Then go to IDEA to connect to MySQL
I found that life is full of surprises and it was successful.

insert image description here

However, there is also confusion <br /> Why are there two processes using 3306? ? ?
And, after disabling one of them, IDEA can connect. I hope the big guys can answer this question.

This is the end of this article about how to solve the problem that IDEA cannot connect to MySQL port number occupation. For more information about IDEA MySQL port number occupation, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • The problem of Chinese garbled characters appearing when connecting to MySQL database in Idea
  • Detailed steps for Java to connect to MySQL 8.0 JDBC (IDEA version)
  • Create a SpringBoot+MyBatis+MySql project in IDEA to implement dynamic login and registration functions
  • Detailed steps to use IDEA to configure Tomcat and connect to MySQL database (JDBC)
  • Bugs encountered when using mybatis-generator with mysql8.0.3 in IDEA
  • Detailed explanation of how to connect to MySQL database using Java in IntelliJ IDEA
  • Problems and solutions of error 08001 when linking to MySQL in IDEA and no table display after successful connection
  • JDBC-idea import mysql to connect java jar package (mac)
  • Problems and solutions for IDEA connecting to MySQL
  • Tutorial on how to connect and use MySQL 8.0 in IDEA's Maven project
  • IDEA uses properties configuration file to connect to MySQL database
  • Detailed diagram of IntelliJ IDEA connecting to MySQL database
  • Solution to the error when connecting to MySQL database in IDEA

<<:  Proxy_pass method in multiple if in nginx location

>>:  Detailed explanation of the difference between alt and title

Recommend

Display flex arrangement in CSS (layout tool)

Regarding display: flex layout, some people have ...

Docker compose custom network to achieve fixed container IP address

Due to the default bridge network, the IP address...

PNG Alpha Transparency in IE6 (Complete Collection)

Many people say that IE6 does not support PNG tra...

Mysql method to copy a column of data in one table to a column in another table

mysql copy one table column to another table Some...

Website design should pay attention to the sense of color hierarchy

Recently I have been saying that design needs to h...

In-depth analysis of Vue's responsive principle and bidirectional data

Understanding object.defineProperty to achieve re...

js to implement verification code interference (static)

This article shares the specific code of js to im...

JS implementation of Apple calculator

This article example shares the specific code of ...

Quickly learn MySQL basics

Table of contents Understanding SQL Understanding...

Detailed explanation of how Tomcat implements asynchronous Servlet

Preface Through my previous Tomcat series of arti...

Detailed explanation of query examples within subqueries in MySql

Where is my hometown when I look northwest? How m...

Several ways to encrypt and decrypt MySQL (summary)

Table of contents Written in front Two-way encryp...

HTML fixed title column, title header table specific implementation code

Copy code The code is as follows: <!DOCTYPE ht...

Prometheus monitors MySQL using grafana display

Table of contents Prometheus monitors MySQL throu...