» 2012 » December » 14 の記事

~ 非localhost connect mysql 方法 ~

connie 2012.12.14 | mysql | | No Comments

如果要外來ip connect 去mysql
要去更改my.cnf

ubuntu 位置為

/etc/mysql/my.cnf
將bind-address 指向要connect 去mysql 的ip

bind-address   = 127.0.0.111

PS: bind-address 不能多於一個,如果多於一個的情況就需要comment 左skip-external-locking 同bind-address,再用firewall block

blog_07

 

| HOME |

Smiley face

December 2012
S M T W T F S
 1
2345678
9101112131415
16171819202122
23242526272829
3031