久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      centos下實現(xiàn)mysql遠(yuǎn)程登錄

      centos下實現(xiàn)mysql遠(yuǎn)程登錄

      實現(xiàn)遠(yuǎn)程登錄主要有以下兩個步驟:

      (1)為mysql用戶授予遠(yuǎn)程登錄權(quán)限(改表法或授權(quán)法);

      (2)防火墻開放3306端口。

      (一)授予登錄權(quán)限

      mysql -u root -p 輸入密碼進(jìn)入到mysql中。

      授權(quán)法

      創(chuàng)建賬號test并授權(quán),密碼為password:

      grant all on *.* to test@'127.0.0.1' identified by "password";

      免費學(xué)習(xí)視頻教程分享:mysql視頻教程

      改表法

      1. 切換到mysql數(shù)據(jù)庫:

      USE mysql;

      2. 修改test的權(quán)限:

      UPDATE user SET host = '%' WHERE user = 'test';

      %:任何ip都可以進(jìn)行訪問

      3. 查看user表是否修改成功 :

      SELECT user,host FROM user;

      centos下實現(xiàn)mysql遠(yuǎn)程登錄

      4. 更新數(shù)據(jù)庫:

      flush privileges;

      (二)開放3306端口

      1. 查看防火墻狀態(tài):

      [root@study ~]# firewall-cmd –state       ## 結(jié)果顯示為running或not running

      2. 開啟端口:

      ## zone -- 作用域 ## add-port=80/tcp -- 添加端口,格式為:端口/通訊協(xié)議 ## permanent -- 永久生效,沒有此參數(shù)重啟后失效 firewall-cmd --zone=public --add-port=3306/tcp –-permanent

      3. 重啟防火墻

      firewall-cmd --reload

      centos下實現(xiàn)mysql遠(yuǎn)程登錄

      使用 firewall-cmd --help 查看幫助文件查看

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號