centos 6.5 x64 上安裝mariadb10

來源:互聯網
上載者:User

標籤:設定檔   資料庫   使用者組   mysql   local   mariadb   

1、# tar zxvf  mariadb-10.0.14-linux-x86_64.tar.gz
2、# cp -R mariadb-10.0.14-linux-x86_64 /usr/local/mysql
3、# useradd  mysql

      增加 mysql 使用者並歸於mysql 屬組

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

      設定 mysql 目錄的使用者及使用者組歸屬。

5、# chmod +x -R /usr/local/mysql

      賜予可執行許可權

6、# cp /usr/local/mysql/support-files/my-medium.cnf /etc/my.cnf

       複製預設mysql設定檔到/etc 目錄

7、#  /usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data &
   初始化資料庫8、# cp  /usr/local/mysql/support-files/mysql.server   /etc/init.d/mysql

        複製mysql服務程式到系統目錄

9、# chkconfig  mysql on

       添加mysql 至系統服務並設定為開機啟動

10、# service  mysql  start

         啟動mysql
或者

/usr/local/mysql/bin/mysqld_safe --user=mysql &


本文出自 “StarSeven” 部落格,請務必保留此出處http://lcpljc.blog.51cto.com/200989/1561177

centos 6.5 x64 上安裝mariadb10

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.