Linux下安裝Mysql(RPM安裝)

來源:互聯網
上載者:User

標籤:mmu   com   安裝mysql   server   啟動   dmi   tracking   .net   使用   

一、去官網下載本次安裝須要的mysql版本號碼。我們須要安裝的是5.1版本號碼的且centos系統是64位的。所下面載的是MySQL-community-5.1.73-1.rhel5.x86_64.rpm-bundle.tar

 

二、將MySQL安裝包放到/home/Lee下

 

 

三、解壓MySQL的tar包

#tar –xf MySQL-community-5.1.73-1.rhel5.x86_64.rpm-bundle.tar

 

四、解壓後會看到例如以下檔案

 

五、安裝PRM包

由我們能夠看到有8個rpm包。可是我們這裡僅僅須要安裝serevr與client包就可以正常使用mysql。其餘的包按詳細情況自己決定是否安裝

#rpm –ivh MySQL-server-community-5.1.73-1.rhel5.x86_64.rpm

#rpm –ivh MySQL-client-community-5.1.73-1.rhel5.x86_64.rpm

 

六、設定使用者password(新安裝的mysql預設username為root,可是password得自己設定)

#mysqladmin     -u root password ‘root’ //設定新密碼為root

 

七、啟動mysql

       #mysql –uroot -proot

Linux下安裝Mysql(RPM安裝)

聯繫我們

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