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

Detailed explanation of Vue options

Table of contents 1. What are options? 2. What at...

MySQL 8.0.21 installation tutorial with pictures and text

1. Download the download link Click download. You...

Node+socket realizes simple chat room function

This article shares the specific code of node+soc...

Summary of CSS gradient effects (linear-gradient and radial-gradient)

Linear-gradient background-image: linear-gradient...

HTML table border control implementation code

Generally, when we use a table, we always give it...

How to delete all contents in a directory using Ansible

Students who use Ansible know that Ansible only s...

Understanding what Node.js is is so easy

Table of contents Official introduction to Node.j...

Solution to the problem of eight hours difference in MySQL insertion time

Solve the problem of eight hours time difference ...

Example of deploying Laravel application with Docker

The PHP base image used in this article is: php:7...

How to build pptpd service in Alibaba Cloud Ubuntu 16.04

1. To build a PPTP VPN, you need to open port 172...

Notes on upgrading to mysql-connector-java8.0.27

Recently, an online security scan found a vulnera...

Summary of XHTML application in web design study

<br />Generally speaking, the file organizat...

Interviewers often ask questions about React's life cycle

React Lifecycle Two pictures to help you understa...

How to deploy Confluence and jira-software in Docker

version: centos==7.2 jdk==1.8 confluence==6.15.4 ...