windows下my.ini中 在port=3306前加上 如果不加这行,默认是监听127.0.0.0,加了后是监听局域网端口和外网端口。 bind-address = 0.0.0.0 image.png