Solutions to the problem of connecting Navicat MySQL to MySQL in Linux

Source: Internet
Author: User

This article mainly introducesNavicat MySQLIn LinuxMySQLIt is a powerful MySQL database server management and development tool that can be used in any MySQL version 3.21 or later, most functions of the latest MySQL version are supported, including triggers, pre-stored programs, functions, events, views, and user management.

Navicat MySQL is applicable to Microsoft Windows, Mac OS X, and Linux. It allows users to connect to local/remote MySQL Server and provides some practical tools such as data/structure synchronization, import/export, backup and report to assist in data management processes.

Navicat for MySQL Enterprise Edition 8.1.18 registration code: a problem with NAVE-WAGB-ZLF4-T23K using Navicat to connect MySQL under Linux.

Error1: 2003: Can't connect to MySQL server on 'localhost'

Solution:

Disable the firewall function of Linux or allow the TCP port 3306 to pass. You can run the following command to enable the TCP port 3306.

 
 
  1. [root@bugzilla ~]# more /etc/sysconfig/iptables。  
  2.  
  3. -A RH-Firewall-1-INPUT -p tcp --dport 3306 -j ACCEPT。 

Error2: 1130-Host 'clientip' is not allowed to connect to this MySQL server.

Solution:

Use the root user to log on to Linux, log on to the root user of MySQL, and change the allowed IP address range for login.

 
 
  1. [Root @ bugzilla ~] # Mysql-u root-p
  2.  
  3. Mysql> grant all privileges on *. * to 'root' @ '%' identified by 'Password' with grant option;

This command allows all hosts that use the root user to enter the password to log on to the mysql server. If you change '%' to '192. 168.1.100 ', only the hosts of '192. 168.1.100' can log on to the mysql server.

This article describes how to use Navicat MySQL to connect to a MySQL database in Linux!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.