When Navicat connects to MySQL, it reports 10060, 1045 errors and the location of my.ini

When Navicat connects to MySQL, it reports 10060, 1045 errors and the location of my.ini

Navicat reports errors 10060 and 1045 when connecting to the database. Where is the my.ini file for MySQL 8.0.18?

insert image description here

The reason for this phenomenon is that port 3306 is blocked by the firewall and cannot be connected to the port. First, press Win+R, run services.msc, and check if the MySQL service is turned on.

insert image description here

I see here that the MySQL80 network service is not running. When I want to turn on...

insert image description here

Unable to start service

Solution (create port 3306)

1. Control Panel -> Windows Defender Firewall -> Advanced Settings -> Inbound Rules

insert image description here

Check whether port 3306 is enabled.

insert image description here

Because my port number 3306 is disabled, I don't have this port number.

2. Inbound Rules -> New Rules -> Ports -> TCP Specific Local Ports -> Enter 3306 -> Allow Connection -> Check all the boxes -> then give it a name

insert image description here

3. Set the port

insert image description hereinsert image description hereinsert image description hereinsert image description hereinsert image description here

4. When I thought I had solved error 10060, I tried to access the database using Navicat and the command line, but error 1045 appeared.

insert image description hereinsert image description here

Then I found the service

I found that MySQL80 still could not be started, so I clicked on the properties of the two services MySQL and MySQL80:

insert image description here

insert image description here

Their executable file paths seem to be slightly different. When I saw the executable file path of MySQL80, I was surprised to find:

The my.ini file of MySQL8.0.18 is not in the MySQL installation directory (D:\Program Files\MySQL\MySQL Server 8.0), but in the directory shown in the figure (D:\ProgramData\MySQL\MySQL Server 8.0\my.ini)

insert image description here

5. Later I turned off the MySQL service (set it to manual start), and found that I could start the MySQL80 service

insert image description here

6. Then use Navicat to connect to the database

insert image description here

Summarize

This is the end of this article about Navicat connecting to MySQL with 10060 and 1045 errors and the location of my.ini. For more information about navicat connecting to MySQL with error 1045, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Navicat connection MySQL error description analysis
  • Solve the problem of Navicat for MySQL reporting 2005 error when connecting to MySQL
  • Common errors and solutions for connecting Navicat to virtual machine MySQL
  • Navicat connects to MySQL8.0.11 and an error 2059 occurs
  • Solve the 1251 error when establishing a connection between mysql and navicat
  • Solve the 3680 error when creating a new database in Navicat on Mac

<<:  How to install openssh from source code in centos 7

>>:  Vue implements three-level navigation display and hiding

Recommend

Docker learning method steps to build ActiveMQ message service

Preface ActiveMQ is the most popular and powerful...

A brief analysis of mysql index

A database index is a data structure whose purpos...

Implementation of multi-port mapping of nginx reverse proxy

Code Explanation 1.1 http:www.baidu.test.com defa...

Embedded transplant docker error problem (summary)

After a long period of transplantation and inform...

In-depth understanding of uid and gid in docker containers

By default, processes in the container run with r...

Install three or more tomcats under Linux system (detailed steps)

If you want to install multiple tomcats, you must...

Summary of fragmented knowledge of Docker management

Table of contents 1. Overview 2. Application Exam...

Command to remove (delete) symbolic link in Linux

You may sometimes need to create or delete symbol...

MySQL data analysis storage engine example explanation

Table of contents 1. Introduce cases 2. View the ...

Teach you how to implement a react from html

What is React React is a simple javascript UI lib...

Detailed explanation of webpack-dev-server core concepts and cases

webpack-dev-server core concepts Webpack's Co...

Some suggestions on Vue code readability

Table of contents 1. Make good use of components ...

Vue and react in detail

Table of contents 1. Panorama II. Background 1. R...