当前位置:网站首页>Connect to LAN MySQL
Connect to LAN MySQL
2022-07-06 17:17:00 【Xiaobai said (๑• ๑)】
Connect to the local area network MySql
I met a little problem today , Make a note of .
describe : Different hosts are connected to a host in the LAN MySql database .
Firewall settings
Because of security issues , You cannot turn off the firewall directly , So you need to set inbound rules .
open : The Internet and Internet Set up ->windows A firewall -> Advanced settings .
Enable two rules , Property is set to any IP Address , LAN internal energy ping through MySql Host IP:
Create a new inbound rule : Sure For any local area network IP Open up a 3306 The port of ( I use mysql Port of service ). Operate in sequence .
thus , The opening of LAN ports has been completed .
MySql Service settings
because MySql Only supported by default localhost Make a local visit , The local IP No access to , So we need to open up MySql jurisdiction .
- Use the client to connect to the local MySql service , open mysql database ;(use mysql)
- Check the corresponding permission IP:SELECT user,host FROM user;
- Find that you need open permission ( user ) The interview of IP updated (%):update user set host=’%’ where user=‘ The logged in user root’
- restart MySql Service or refresh permissions :FLUSH PRIVILEGES
Now you can access the MySql Database !
边栏推荐
猜你喜欢
MySQL日期函数
Logical operation instruction
Garbage first of JVM garbage collector
Many papers on ByteDance have been selected into CVPR 2021, and the selected dry goods are here
ByteDance technical Interviewer: what kind of candidate do I want to pick most
微信防撤回是怎么实现的?
Mongodb learning notes
Assembly language addressing mode
Take you hand-in-hand to do intensive learning experiments -- knock the level in detail
【逆向中级】跃跃欲试
随机推荐
Brush questions during summer vacation, ouch ouch
Control transfer instruction
Flink 解析(二):反压机制解析
JVM garbage collector part 1
Flink 解析(六):Savepoints
Go language uses the thrift protocol to realize the client and service end reports not enough arguments in call to oprot Writemessagebegin error resolution
redux使用说明
Flink 解析(四):恢复机制
唯有学C不负众望 TOP4 S1E6:数据类型
JVM之垃圾回收器上篇
【逆向初级】独树一帜
唯有學C不負眾望 TOP5 S1E8|S1E9:字符和字符串&&算術運算符
MySQL数字函数
js垃圾回收机制和内存泄漏
Flink 解析(七):时间窗口
Only learning C can live up to expectations Top1 environment configuration
yum install xxx报错
DOS function call
Train 100 pictures for 1 hour, and the style of the photos changes at will. There is a demo at the end of the article | siggraph 2021
8086 segmentation technology