简体   繁体   中英

Ubuntu Server: MySQL setup hostname to respond to domainname?

Can someone help me out how to setup my MySQL to respond to domain name or IP Address so It can be accessed outside?

Thanks

There is no special setting required to make a mysql server listen to a network socket. There only is a setting to suppress that default behaviour you might want to check. It is found in the main server configuration, usually /etc/my.cnf :

# Remove leading # if you don't want to listen on network (only socket - safer)
# skip-networking

In addition you obviously have to open the network port in your firewall to be able to access from outside. Usually that is port 3306.

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