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

How to use vw+rem for mobile layout

Are you still using rem flexible layout? Does it ...

How to set a fixed IP address in CentOS7 virtual machine

Since my development environment is to install Ce...

Native JS to achieve cool paging effect

This article uses an example to share with you a ...

HTML implements read-only text box and cannot modify the content

Without further ado, I will post the code for you...

How to view and close background running programs in Linux

1. Run the .sh file You can run it directly using...

Good website copywriting and good user experience

Looking at a website is actually like evaluating a...

Detailed explanation of the MySQL MVCC mechanism principle

Table of contents What is MVCC Mysql lock and tra...

How to use echarts to visualize components in Vue

echarts component official website address: https...

Detailed description of common events and methods of html text

Event Description onactivate: Fired when the objec...

JavaScript to achieve dynamic color change of table

This article shares the specific code for JavaScr...

Vue implements weather forecast function

This article shares the specific code of Vue to r...

Implementation of Docker deployment of SQL Server 2019 Always On cluster

Table of contents Docker deployment Always on clu...