简体   繁体   中英

mysql on windows, remote access

I just downloaded and installed MySQL on a windows machine. I will only be using it from the same machine. I would like to make sure that no remote connections can be made to my server. What is the way I should do this? I am using windows. I disabled TCP/IP access altogether but it seems connections through pipes don't work (is this a windows thing?) Thanks.

Make sure your server listens to 127.0.0.1 ip instead of 0.0.0.0

This can either be done by editing my.ini / my.cnf file or by editing the mysql service in windows.

Add following line to your my.ini file in [mysqld] section

bind-address = 127.0.0.1

See more on manual

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM