久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      centos如何下載mysql

      centos如何下載mysql

      一、下載并安裝MySQL官方的 Yum Repository

      [root@localhost ~]# wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm

      使用上面的命令就直接下載了安裝用的Yum Repository,大概25KB的樣子,然后就可以直接yum安裝了。

      [root@localhost ~]# yum -y install mysql57-community-release-el7-10.noarch.rpm

      之后就開始安裝MySQL服務(wù)器。

      [root@localhost ~]# yum -y install mysql-community-server

      這步可能會(huì)花些時(shí)間,安裝完成后就會(huì)覆蓋掉之前的mariadb。

      二、MySQL數(shù)據(jù)庫(kù)設(shè)置

      首先啟動(dòng)MySQL

      [root@localhost ~]# systemctl start  mysqld.service

      查看MySQL運(yùn)行狀態(tài)

      [root@localhost ~]# systemctl status mysqld.service

      要想進(jìn)入MySQL還得先找出此時(shí)root用戶的密碼,通過如下命令可以在日志文件中找出密碼:

      [root@localhost ~]# grep "password" /var/log/mysqld.log

      如下命令進(jìn)入數(shù)據(jù)庫(kù):

      [root@localhost ~]# mysql -uroot -p

      輸入初始密碼(是上面圖片最后面的 no;e!5>>alfg),此時(shí)不能做任何事情,因?yàn)镸ySQL默認(rèn)必須修改密碼之后才能操作數(shù)據(jù)庫(kù):

      mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'new password';

      其中‘new password’替換成你要設(shè)置的密碼,注意:密碼設(shè)置必須要大小寫字母數(shù)字和特殊符號(hào)(,/';:等),不然不能配置成功。

      三、為firewalld添加開放端口

      添加mysql端口3306和Tomcat端口8080

      [root@localhost ~]# firewall-cmd --zone=public --add-port=3306/tcp --permanent [root@localhost ~]# firewall-cmd --zone=public --add-port=8080/tcp --permanent

      然后再重新載入

      [root@localhost ~]# firewall-cmd --reload

      相關(guān)教程推薦:centos教程

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