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

Nginx uses the Gzip algorithm to compress messages

What is HTTP Compression Sometimes, relatively la...

JavaScript canvas implements moving the ball following the mouse

This article example shares the specific code of ...

A quick guide to Docker

Docker provides a way to automatically deploy sof...

Compatibility with the inline-block property

<br />A year ago, there were no articles abo...

How to use Docker Compose to implement nginx load balancing

Implement Nginx load balancing based on Docker ne...

How to install multiple mysql5.7.19 (tar.gz) files under Linux

For the beginner's first installation of MySQ...

How to start tomcat using jsvc (run as a normal user)

Introduction to jsvc In production, Tomcat should...

Vue Element-ui table realizes tree structure table

This article shares the specific code of Element-...

MySQL scheduled backup solution (using Linux crontab)

Preface Although some love in this world has a pr...

How to safely shut down MySQL

When shutting down the MySQL server, various prob...

Shell script nginx automation script

This script can satisfy the operations of startin...