日期:2014-05-16  浏览次数:20812 次

MySQL 分为Community Server 和 Enterprise Edition。 其中Community Server 可以直接从mysql 的官网

MySQL 分为Community Server 和 Enterprise Edition。 其中Community Server 可以直接从mysql 的官网下载。Enterprice Edition 只能从Oracle edelivery上下载,不过Edelivery 现在已经屏蔽了中国的IP,如果国内的用户一般不能从edelivery上下载,出去才能下载。

?

1.1 官方文档上有关MySQL安装文件类型说明:

???????http://dev.mysql.com/doc/refman/5.5/en/index.html

?

Linux supports anumber of different solutions for installing MySQL. The recommended method isto use one of the distributions from Oracle. If you choose this method, thereare three options available:

(1)Installingfrom a generic binary package in?.tar.gz?format. See?Section?2.2,“Installing MySQL from Generic Binaries on Unix/Linux”?for moreinformation.

(2)Extractingand compiling MySQL from a source distribution. For detailed instructions,see?Section?2.9, “InstallingMySQL from Source”.

(3)Installingusing a pre-compiled RPM package. For more information on using the RPMsolution, see?Section?2.5.1,“Installing MySQL from RPM Packages on Linux”.

?????? --这里讲了3种方式来安装MySQL数据库,我这里用最简单的RPM 包来安装。

?

As analternative, you can use the native package manager within your Linuxdistribution to automatically download and install MySQL for you. Nativepackage installations can take of the download and dependencies required to runMySQL, but the MySQL version will often be some way behind the currentlyavailable release. You will also normally be unable to install developmentalreleases, as these are not usually made available in the native repository. Formore information on using the native package installers, see?Section?2.5.2,“Installing MySQL on Linux using Native Package Manager”.

?

Note

For many Linux installations,you will want to set up MySQL to be started automatically when your machinestarts. Many of the native package installations perform this operation foryou, but for source, binary and RPM solutions you may need to set this upseparately. The required script,?mysql.server,can be found in the?support-filesdirectory under the MySQL installationdirectory or in a MySQL source tree. You can install itas/etc/init.d/mysql?for automatic MySQL startup and shutdown. See?Section?2.10.1.2,“Starting and Stopping MySQL Automatically”.

???????--这里要注意一个问题,就是设置MySQL的自启动。 如果使用native package来安装,会自动设置为自启动,如果使用其他的方式,如source,binary和RPM,就需要单独的来设置自启动。

?

1.2 下载安装包

?????? 我这里下载Community Server 版的,Enterprise Edition版的请到Oracle E-Delivery上下载。Enterprise Edition 有30天的试用期。

?