MySQL 5.5 通用二進位格式安裝

來源:互聯網
上載者:User

標籤:mysql   安裝   5.5   


wget http://101.96.10.42/dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.53-linux2.6-x86_64.tar.gz


groupadd -r mysql

useradd -g mysql -r -s /sbin/nologin mysql

id mysql

uid=498(mysql) gid=499(mysql) groups=499(mysql)


tar zxvf mysql-5.5.53-linux2.6-x86_64.tar.gz -C /usr/local/

cd /usr/local/

ln -sv mysql-5.5.53-linux2.6-x86_64 mysql

cd mysql

chown -R mysql.mysql .


mkdir /home/data

chown -R mysql.mysql /home/data

./scripts/mysql_install_db --datadir=/home/data --user=mysql

chown -R root .

chown -R mysql.mysql /home/data


 cp support-files/mysql.server /etc/rc.d/init.d/mysqld

chkconfig --add mysqld

chkconfig --list mysqld

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


vi /etc/my.conf


添加:

datadir = /home/data

# Try number of CPU‘s*2 for thread_concurrency

thread_concurrency = 40


設定環境變數

vi /etc/profile.d/mysql

export PATH=/usr/local/mysql/bin:$PATH

讀取環境變數

 . /etc/profile.d/mysql


啟動

service mysqld start

關閉:

mysqladmin shutdown

mysqladmin -uroot -p




本文出自 “12213582” 部落格,請務必保留此出處http://12223582.blog.51cto.com/12213582/1876180

MySQL 5.5 通用二進位格式安裝

聯繫我們

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