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.
- [root@bugzilla ~]# more /etc/sysconfig/iptables。
-
- -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.
- [Root @ bugzilla ~] # Mysql-u root-p
-
- 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!