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

How to connect MySQL in the local area network

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "how to connect MySQL in the local area network". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to connect MySQL in the local area network.

To connect to MySQL in the local area network, first of all, open the function of remote connection to MySQL. Execute the following command on the MySQL command line on the MySQL server:

Sql code

Grant all privileges on *. * to root@ "%" identified by '123' with grant option

Flush privileges

It means to give all permissions to users who connect from any ip address with a user name of root and a password of 123. The "%" is any ip address, or you can set it to a specific value if you want.

After executing this statement, you can access the machine as root:123 on other machines.

At this point, I believe you have a deeper understanding of "how to connect MySQL in the local area network". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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