Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

CentOS 5.10 安裝配置 MariaDB 5.5 完整教學

編輯:關於 Linux

MariaDB 是 MySQL 的高效能分支,採用 Maria 儲存引擎。本文記錄在 CentOS 5.10 32 位元環境下,以原始碼編譯方式安裝 MariaDB 5.5.33a,資料目錄設為 /data/mysql 的完整流程。

前置準備

  • 配置靜態 IP、DNS、閘道,確保遠端連線與 yum 正常。
  • 開放防火牆 3306 埠:編輯 /etc/sysconfig/iptables,在 22 埠規則下方新增
    -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
    重啟防火牆:/etc/init.d/iptables restart
  • 關閉 SELinux:編輯 /etc/selinux/config,設定 SELINUX=disabled,重啟系統。

安裝步驟(續)

後續包含建立 mysql 使用者群組、下載原始碼、cmake 編譯參數設定、初始化資料庫、配置 my.cnf、設定開機自啟、root 密碼修改與遠端授權等細節。完整步驟請參考原文分頁內容。

上一頁12下一頁共2頁

Copyright © Windows教程網 All Rights Reserved