利用rpm安裝mysql

來源:互聯網
上載者:User

yum install ncurses-libs.i686 libstdc++.i686 libgcc.i686

http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/libaio.so.1%28LIBAIO_0.1%29

需要libaio庫

 

先查看系統中是否已經安裝過MySQL:
rpm -qa|grep mysql  

MySQL-server-VERSION.rpm
mysql服務檔案包(若串連遠程伺服器,可不用安裝此包)
MySQL-client-VERSION.rpm
mysql用戶端
一般只需要安裝這2個檔案包即可。

 查看安裝包資訊:

shell> rpm -qpl MySQL-server-VERSION.glibc23.i386.rpm

 安裝一下2個檔案包: 

shell> rpm -i MySQL-server-VERSION.glibc23.i386.rpmshell> rpm -i MySQL-client-VERSION.glibc23.i386.rpm

To install only the client programs, install just the client RPM:

shell> rpm -i MySQL-client-VERSION.glibc23.i386.rpm
安裝完成後需要重新啟動電腦,之後輸入mysql即可啟動mysql
若提示"Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) "錯誤,則需要重新啟動一下電腦
安裝完成以後可以使用mysqladmin命令修改初始密碼:



mysqladmin -u root password 'new-passwd'
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h bogon password 'new-password'

目錄結構:

/usr/bin Client programs and scripts
/usr/sbin The mysqld server
/var/lib/mysql Log files, databases
/usr/share/info Manual in Info format
/usr/share/man Unix manual pages
/usr/include/mysql Include (header) files
/usr/lib/mysql Libraries
/usr/share/mysql Miscellaneous support files, including error messages, character set files, sample configuration files, SQL for database installation
/usr/share/sql-bench

Benchmarks

相關文章

聯繫我們

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