当前位置:网站首页>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 !
边栏推荐
猜你喜欢
随机推荐
1. JVM入门介绍
vscode
JVM运行时数据区之程序计数器
Flink 解析(七):时间窗口
JVM garbage collector part 1
Only learning C can live up to expectations top5 S1E8 | S1E9: characters and strings & arithmetic operators
JVM之垃圾回收器下篇
Conception du système de thermomètre numérique DS18B20
在 vi 编辑器中的命令模式下,删除当前光标处的字符使用 __ 命 令。
Assembly language segment definition
JVM垃圾回收概述
Description of project structure configuration of idea
À propos de l'utilisation intelligente du flux et de la carte
Only learning C can live up to expectations TOP4 S1E6: data type
1. Introduction to JVM
DS18B20數字溫度計系統設計
【逆向】脱壳后修复IAT并关闭ASLR
The daemon thread starts redis and modifies the configuration file
唯有學C不負眾望 TOP5 S1E8|S1E9:字符和字符串&&算術運算符
Resume of a microservice architecture teacher with 10 years of work experience








