Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of server setting mysql port open

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the server to set mysql port open method, the article introduces in great detail, has a certain reference value, interested friends must read!

The server sets the mysql port open method: 1, find the mysql database, change the localhost to [%]; 2, open the firewall; 3, write [bind-address:0.0.0.0] in the database my.cnf open port 3306.

How the server sets the mysql port to open:

1: modify in mysql

Log in to the database and find the mysql database

Put select user,host from user in it

Find the user name and the corresponding host. If the host value is localhost, only local access is allowed.

Change it to%

2: open firewall

Find the location of the firewall settings and refer to the tutorials on the network. When gluing lines of code, you need to stick in front of a line. If you don't know, paste directly under port 22.

3: write in my.cnf of the database

Bind-address:0.0.0.0

Open port 3306

Finally, you can connect remotely. When connecting on my machine, the quotation marks at the password need to be in double quotes, otherwise they will be rejected.

The above is all the contents of the server setting mysql port open method, thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report