linux 學習筆記 mysql安裝總結

來源:互聯網
上載者:User

標籤:

1 安裝方式

下載2禁制源碼安裝包

mysql-5.5.27-linux2.6-i686.tar.gz

備忘:2禁制額包解壓縮後直接就可以使用 不用Make

2 步驟

shell>groupadd mysql

shell>useradd -d /home/mysql -m mysql -g mysql

shell>cd /usr/local

shell>mkdir mysql

shell>cp /mnt/hgfs/Exchange \Data/MYSQL_Linux/mysql-5.5.27-linux2.6-i686.tar.gz

/usr/etc/DEV/mysql

shell>cd mysql

shell>tar xzvf /usr/etc/DEV/mysql/mysql-5.5.27-linux2.6-i686.tar.gz

shell>mv mysql-5.5.27-linux2.6-i686/* .

shell>scripts/mysql-install_db --usr=mysql>note.txt&

shell>cp /usr/etc/DEV/mysql/mysql/support-files/mysql.server /etc/rc.d/init.d/mysqld

shell>chown -R root

shell>chown -R mysql data

shell>chown -R mysql .

shell>cd bin

shell>./mysql

 

3 關鍵檔案

MYSQL 二進位源碼安裝檔案位置

/mnt/hgfs/Exchange \Data/MYSQL_Linux/mysql-5.5.27-linux2.6-i686.tar.gz

MYSQL安裝位置

#whereis mysql

/usr/local/mysql

 

MYSQL 設定檔  /etc/my.cnf

MYSQL啟動指令碼位置  /etc/rc.d/init.d/mysqld

MYSQL啟動方式 方式:

1>#cd /usr/local /mysql/bin

#./mysql -uroot -p

#Enter Password

方式

2 /etc/rc.d/init.d/mysqld restart

 

linux 學習筆記 mysql安裝總結

聯繫我們

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