Common errors and solutions for connecting Navicat to virtual machine MySQL

Common errors and solutions for connecting Navicat to virtual machine MySQL

Question 1

solve

Start the service: service mysqld start;

/sbin/iptables -I INPUT -p tcp --dport 8011 -j ACCEPT #Open port 8011 /etc/rc.d/init.d/iptables save #Save configuration /etc/rc.d/init.d/iptables restart #Restart service #Check if the port is open /etc/init.d/iptables status

Question 2

solve

Mysql -u root -proot (root is the password)
mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'yourpassword' WITH GRANT OPTION;

Refresh permissions: FLUSH PRIVILEGES

Question 3

After the MySQL service is set up, the default root role cannot connect remotely. Enable remote login for the root user in the user table under the MySQL database on the machine where MySQL is installed.

This is the end of this article about common errors and solutions when Navicat connects to virtual machine mysql. For more information about errors when Navicat connects to virtual machine mysql, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • After installing Navicat in MySQL, 2059 appears, Authentication plugin and local link virtual machine docker, remote link server
  • How to connect navicat to mysql in Ubuntu virtual machine

<<:  Instructions for using the meta viewport tag (mobile browsing zoom control)

>>:  Detailed steps for installing Tomcat, MySQL and Redis with Docker

Recommend

Ubuntu16.04 installation mysql5.7.22 graphic tutorial

VMware12.0+Ubuntu16.04+MySQL5.7.22 installation t...

Analysis of rel attribute in HTML

.y { background: url(//img.jbzj.com/images/o_y.pn...

Introduction to CSS BEM Naming Standard (Recommended)

1 What is BEM Naming Standard Bem is the abbrevia...

Use of MySQL trigger

Table of contents 1. Trigger Introduction 1. What...

Detailed explanation of writing multiple conditions of CSS: not

The :not pseudo-class selector can filter element...

Detailed use cases of vue3 teleport

Official Website https://cli.vuejs.org/en/guide/ ...

Comparison of CSS shadow effects: drop-Shadow and box-Shadow

Drop-shadow and box-shadow are both CSS propertie...

Blog Design Web Design Debut

The first web page I designed is as follows: I ha...

How to use glog log library in Linux environment

Generate Linux library The Linux version uses cen...

Tutorial diagram of installing TomCat in Windows 10

Install TomCat on Windows This article will intro...

Vue uses drag and drop to create a structure tree

This article example shares the specific code of ...

Differentiate between null value and empty character ('') in MySQL

In daily development, database addition, deletion...