Solve the problem that Navicat cannot connect to the MySQL server in the Centos system in VMware

Solve the problem that Navicat cannot connect to the MySQL server in the Centos system in VMware

Solution to Host 'xxxx' is not allowed to connect to this MySQL server

Error: 1130 -Host *** is not allowed to connect to this MySQL server

There is also an error with the IP here. I entered 192.168.117.101 but it was reported as 192.168.117.1

There are many possible reasons why the connection fails. If the error message above is displayed, the following is the solution. If not,

Possible reasons include: Network is not connected, article link: Centos sets static IP and connects to the external network,

The Linux server firewall does not open the mysql port: turn off the Centos firewall

For Ubuntu, you can also refer to the above two blogs. You can also look for it in my column, you should be able to find it.

Directly on the solution:

First log in to mysql in the virtual machine

mysql -u root -p

Enable mysql

use mysql;

Allow remote connections Authorization

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'your root password' WITH GRANT OPTION;

It is best to refresh the permissions; it may take effect even without refreshing.

flush privileges;

Then test the connection and you will find it successful

This is the end of this article about solving the problem that Navicat cannot connect to MySQL server in Centos system in VMware. For more related content about Navicat cannot connect to VMware MySQL server, 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:
  • Install CentOS7 in VMware (set static IP address) and install mySql database through docker container (super detailed tutorial)
  • VMWare Linux MySQL 5.7.13 installation and configuration tutorial
  • How to share MySQL database in Linux in VMware
  • MySQL8.0 installation process under Centos7 in VMware workstation16 and Navicat remote connection

<<:  CSS3 category menu effect

>>:  Summary of bootstrap learning experience-css style design sharing

Recommend

How to install theano and keras on ubuntu system

Note: The system is Ubuntu 14.04LTS, a 32-bit ope...

Webpack file packaging error exception

Before webpack packaging, we must ensure that the...

How to install MySQL 8.0 database on M1 chip (picture and text)

1. Download First of all, I would like to recomme...

mysql5.7.14 decompressed version installation graphic tutorial

MySQL is divided into Community Edition (Communit...

How to install mysql on centos and set up remote access

1. Download the mysql repo source $ wget http://r...

Steps to split and compress CSS with webpack and import it with link

Let's take a look at the code file structure ...

How to use JS to implement waterfall layout of web pages

Table of contents Preface: What is waterfall layo...

Detailed tutorial on using the Prettier Code plugin in vscode

Why use prettier? In large companies, front-end d...

How to Dockerize a Python Django Application

Docker is an open source project that provides an...

Install tomcat and deploy the website under Linux (recommended)

Install jdk: Oracle official download https://www...

Problems with Vue imitating Bibibili's homepage

Engineering Structure The project is divided into...

Semantics, writing, and best practices of link A

The semantics, writing style, and best practices ...

Detailed explanation of flex and position compatibility mining notes

Today I had some free time to write a website for...