找到設定檔
有可能的路徑有
/etc/my.cnf
/etc/mysql/my,cnf
而ubuntu則是在
/etc/mysql/mariadb.conf.d/50-server.cnf
修改設定
skip-networking
bind-address = 127.0.0.1
改成
#skip-networking
bind-address = 0.0.0.0
這樣會讓所有ip都可以連線,所以要小心,通常這樣使用可能會有多台機器要連,若要限制,要去設定防火牆,但小編在ubuntu上找不到skip-networking的設定,設定好後重啟動mariadb,一樣沒有改變,電腦重開機後就可以了。
沒有留言:
張貼留言