設置容許外網訪問MySQL數據庫【Linux】

1:設置mysql的配置文件 /etc/mysql/my.cnf 若是有bind-address,找到 bind-address =127.0.0.1 將其註釋掉;//做用是使得再也不只容許本地訪問;mysql 重啓mysql:/etc/init.d/mysql.server restart 注:不一樣的服務器配置不同web 2:登陸mysql數據庫:mysql -u root -psql # 使
相關文章
相關標籤/搜索