MySQL Installation

    安裝後的必要步驟

    初始化安全性

    /usr/bin/mysql_secure_installation

    使用 Yum 安裝 MySQL

    官方教學:A Quick Guide to Using the MySQL Yum Repository

    1. 移除舊版本的套件

    yum remove mysql mysql-*
    

    2. 下載並安裝適合的官方套件庫

    下載:http://dev.mysql.com/downloads/repo/yum/

    wget http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
    

    3. 安裝 MySQL-Community-Server

    shell> rpm -Uvh mysql-community-release-el6-5.noarch.rpm
    
    shell> yum repolist enabled
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: ftp.nsysu.edu.tw
     * extras: ftp.nsysu.edu.tw
     * updates: ftp.nsysu.edu.tw
    repo id                                      repo name                                    status
    base                                         CentOS-6 - Base                              6,518
    extras                                       CentOS-6 - Extras                               37
    mysql-connectors-community                   MySQL Connectors Community                      14
    mysql-tools-community                        MySQL Tools Community                           23
    mysql56-community                            MySQL 5.6 Community Server                     146
    updates                                      CentOS-6 - Updates                           1,044
    repolist: 7,782
    
    shell> yum install mysql-community-server
    

    教學連結

    標籤 (Edit tags)
    • No tags
    您必須 登入 才能發佈評論。
    Powered by MindTouch Core