国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

SUSE Linux下源碼編譯方式安裝MySQL 5.6過程分享

2024-07-24 12:46:45
字體:
來源:轉載
供稿:網友

MySQL為開源數據庫,因此可以基于源碼實現安裝。基于源碼安裝有更多的靈活性。也就是說我們可以針對自己的硬件平臺選用合適的編譯器來優化編譯后的二進制代碼,根據不同的軟件平臺環境調整相關的編譯參數,選擇自身需要選擇不同的安裝組件,設定需要的字符集等等一些可以根據特定應用場景所作的各種調整。本文描述了如何在源碼方式下安裝MySQL。

1、安裝環境及介質

復制代碼 代碼如下:

#安裝環境
SZDB:~ # cat /etc/issue
Welcome to SUSE Linux Enterprise Server 10 SP3 (x86_64) - Kernel /r (/l).
SZDB:~ # uname -a
Linux SZDB 2.6.16.60-0.54.5-smp #1 SMP Fri Sep 4 01:28:03 UTC 2009 x86_64 x86_64 x86_64 GNU/Linux
#安裝介質,可以到以下網址下載安裝介質,注意下載時選擇source code,當前版本為5.6.17
#根據你自身的環境下載相應的安裝介質,本文演示的安裝介質為Generic Linux (Architecture Independent), mysql-5.6.17.tar.gz
http://dev.mysql.com/downloads/mysql/
#源碼安裝方式官方網站鏈接: http://dev.mysql.com/doc/refman/5.6/en/installing-source-distribution.html

2、系統需求

復制代碼 代碼如下:

Source Installation System Requirements
  Installation of MySQL from source requires several development tools. Some of these tools are needed no matter whether you use a standard source distribution or a development source tree. Other tool requirements depend on which installation method you use.
To install MySQL from source, your system must have the following tools, regardless of installation method:
CMake, which is used as the build framework on all platforms. CMake can be downloaded from http://www.cmake.org.
A good make program. Although some platforms come with their own make implementations, it is highly recommended that you use GNU make 3.75 or newer. It may already be available on your system as gmake. GNU make is available from http://www.gnu.org/software/make/.
A working ANSI C++ compiler. GCC 4.2.1 or later, Sun Studio 12 or later, Visual Studio 2010 or later, and many current vendor-supplied compilers are known to work.
Perl is needed if you intend to run test scripts. Most Unix-like systems include Perl. On Windows, you can use a version such as ActiveState Perl.
#使用源碼安裝上面的一些開發工具是需要的,比較重要的一個是Cmake工具,通常情況下os并沒有安裝,需要手動安裝。
#如果沒有cmake會收到這個錯誤提示:(-bash: cmake: command not found)

3、安裝cmake

復制代碼 代碼如下:

#可以到這里下載cmake,我這里下載的是2.6.4版本
http://www.cmake.org/cmake/resources/software.html
SZDB:~ # cd /usr/local/src/mysql_src
SZDB:/usr/local/src/mysql_src # tar -xvf cmake-2.6.4.tar.gz
SZDB:/usr/local/src/mysql_src # cd cmake-2.6.4
SZDB:/usr/local/src/mysql_src/cmake-2.6.4 # ./bootstrap 
SZDB:/usr/local/src/mysql_src/cmake-2.6.4 # ./make
SZDB:/usr/local/src/mysql_src/cmake-2.6.4 # ./make install
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 新乡市| 岗巴县| 开远市| 颍上县| 楚雄市| 土默特右旗| 抚顺县| 庆元县| 鄂温| 海兴县| 牡丹江市| 宁海县| 克山县| 西乌珠穆沁旗| 汶川县| 大竹县| 鄂托克前旗| 威宁| 临桂县| 将乐县| 昭通市| 江华| 扎兰屯市| 普陀区| 津南区| 新源县| 广西| 理塘县| 德安县| 临清市| 当阳市| 兴国县| 若羌县| 璧山县| 樟树市| 德兴市| 大安市| 佛冈县| 青岛市| 大安市| 通渭县|