mysql新建连接,设置主机名或IP地址,怎么查询本机IP地址?
时间: 2023-06-15 21:05:58 浏览: 398
要查询本机的IP地址,可以使用以下方法:
1. 在命令行中输入 `ipconfig` (Windows)或 `ifconfig` (Mac/Linux)命令,然后查找本机的IP地址。
2. 在浏览器中访问一个在线IP查询工具,例如 `http://www.ip138.com/` 或 `http://ipinfo.io/`,然后查找本机的IP地址。
无论使用哪种方法,都可以找到本机的IP地址,然后在MySQL新建连接时设置主机名或IP地址为该地址。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)