久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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)站

      yum60秒內(nèi)安裝mysql的方法

      一、前言

      直接“yum -y install mysql”安裝mysql,你會(huì)發(fā)現(xiàn),安裝的是MariaDB,并且默認(rèn)是5.5版本,因此如果我們想控制版本,而需要下面的方法

      二、安裝epel倉(cāng)庫(kù)

      yum -y install epel-release

      三、手動(dòng)創(chuàng)建mysql的yum源

      [root@dabiaoge ~]# cd /etc/yum.repos.d/

      [root@dabiaoge yum.repos.d]# vim mysq.repo

      [mysql-connectors-community]

      name=MySQL Connectors Community

      baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/7/$basearch/

      enabled=1

      gpgcheck=1

      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

      [mysql-tools-community]

      name=MySQL Tools Community

      baseurl=http://repo.mysql.com/yum/mysql-tools-community/el/7/$basearch/

      enabled=1

      gpgcheck=1

      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

      [mysql57-community]

      name=MySQL 5.7 Community Server

      baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/

      enabled=1

      gpgcheck=0

      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

      [mysql-tools-preview]

      name=MySQL Tools Preview

      baseurl=http://repo.mysql.com/yum/mysql-tools-preview/el/7/$basearch/

      enabled=0

      gpgcheck=1

      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

      [mysql-cluster-7.5-community]

      name=MySQL Cluster 7.5 Community

      baseurl=http://repo.mysql.com/yum/mysql-cluster-7.5-community/el/7/$basearch/

      enabled=0

      gpgcheck=1

      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

      [mysql-cluster-7.6-community]

      name=MySQL Cluster 7.6 Community

      baseurl=http://repo.mysql.com/yum/mysql-cluster-7.6-community/el/7/$basearch/

      enabled=0

      gpgcheck=1

      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

      四、安裝mysql

      [root@dabiaoge yum.repos.d]# yum -y install mysql-community-server

      五、參看版本

      [root@dabiaoge yum.repos.d]# mysql -V

      mysql Ver 14.14 Distrib 5.7.24, for Linux (x86_64) using EditLine wrapper

      六、啟動(dòng)數(shù)據(jù)庫(kù),查看初始化密碼

      [root@dabiaoge yum.repos.d]# systemctl start mysqld

      [root@dabiaoge yum.repos.d]# cat /var/log/mysqld.log | grep root@localhost

      2019-01-01T11:10:13.006233Z 1 [Note] A temporary password is generated for root@localhost: Nkw6Uma

      七、修改密碼

      [root@dabiaoge yum.repos.d]# mysqladmin -uroot -p'Nkw6Umamysqladmin: [Warning] Using a password on the command line interface can be insecure.

      Warning: Since password will be sent to server in plain text, use ssl connection to ensure password safety.

      //秘鑰要符合復(fù)雜性要求,不能小于8位

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