当前位置:网站首页>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 !
边栏推荐
- 服务器端渲染(SSR)和客户端渲染(CSR)的区别
- 原型链继承
- 8086 segmentation technology
- 唯有學C不負眾望 TOP5 S1E8|S1E9:字符和字符串&&算術運算符
- The daemon thread starts redis and modifies the configuration file
- 汇编语言寻址方式
- 唯有学C不负众望 TOP5 S1E8|S1E9:字符和字符串&&算术运算符
- 控制转移指令
- Thank you for your invitation. I'm in the work area. I just handed in the code. I'm an intern in the next ByteDance
- Only learning C can live up to expectations TOP4 S1E6: data type
猜你喜欢
随机推荐
MySQL数字函数
Mongodb learning notes
8086 CPU 内部结构
TCP的三次握手和四次挥手
Typescript basic operations
JVM 垃圾回收器之Garbage First
Interpretation of Flink source code (III): Interpretation of executiongraph source code
Flink parsing (VI): savepoints
After idea installs the plug-in, restart the plug-in and disappear
在 vi 编辑器中的命令模式下,删除当前光标处的字符使用 __ 命 令。
Coursera cannot play video
koa中间件
8086 内存
Shawshank's sense of redemption
8086 分段技术
数据传送指令
Wu Jun's trilogy experience (VII) the essence of Commerce
SQL tuning notes
Some feelings of brushing leetcode 300+ questions
Prototype chain inheritance








