【MySQL】MySQL5.5源碼SourceCode的安裝部署方法

來源:互聯網
上載者:User

標籤:cmake   mysql源碼安裝   mysql5.5   

************************************************************************  ****原文:blog.csdn.net/clark_xu 徐長亮的專欄************************************************************************安裝CMAKE

wget http://www.cmake.org/files/v2.8/cmake-VERSION.tar.gz

# tar zxvf cmake-VERSION.tar.gz

# cd cmake-VERSION

#./bootstrap

#make

#make install

安裝mysql源碼1.編譯源碼

#tar zxvf mysql-VERSION.tar.gz

#cd mysql-VERSION

#cmake .

#make

#make install

2. 添加使用者

#groupadd -g 1000 mysql

#useradd -u 10001 -g mysql mysql

3. 執行mysql內部安裝

#chown -R mysql:mysql /usr/local/mysql

#cd  /usr/local/mysql

# scripts/mysql_install_db --user=mysql

註:因為mysql_install_db這個指令碼中多處使用‘./bin’來代替/usr/local/mysql/bin這個路徑,所以當前路徑必須為/usr/local/mysql

4. 啟動mysql

建立參數檔案:

# cp support-files/my-medium.cnf /etc/my.cnf

啟動資料庫

#cd  /usr/local/mysql

#support-files/mysql.server start

或者使用mysql_safe也可以啟動資料庫

# bin/mysqld_safe --user=mysql

 

【MySQL】MySQL5.5源碼SourceCode的安裝部署方法

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.