Local navicatl connection to linux

It is preferred that you have a MySQL database installed on your Linux server. enter:

# mysql -u root -proot
mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'youpassword' WITH GRANT OPTION;

This is equivalent to giving all permissions to IP-xxx.xxx.xxx.xxx, including remote access permissions. The percent sign means that any IP is allowed to access the database.

and then enter

flush privileges;

This is equivalent to reloading the mysql permissions, which must be present in this step .

The most important point, be sure to turn off the firewall: service iptables stop. The local Navicat connection can now be used.

If the firewall of the company server is more important and cannot be turned off, then it will be troublesome. You need to configure the properties under the configuration file of the firewall.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325442336&siteId=291194637