mysql在linux64位下安装步骤完整版

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

一.下载说明

前期的一些准备说明,参考:

MySQL发展史

/tianlesoftware/article/details/6999245

Mysql不同版本说明

/tianlesoftware/article/details/6723117

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

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

/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 Section2.2,“Installing MySQL from Generic Binaries on Unix/Linux”for moreinformation.

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

(3)Installingusing a pre-compiled RPM package.For more information on using the RPMsolution,see Section2.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 Section2.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 Section2.10.1.2,“Starting and Stopping MySQL Automatically”.

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

1.2下载安装包

Community Server下载地址:/downloads/mysql/

这里只需要下载linux64位下mysql5.5.33的服务端和客户端安装包:

MySQL-server-5.5.33-1.linux2.6.x86_64.rpm

MySQL-client-5.5.33-1.linux2.6.x86_64.rpm

二.安装MySQL

2.1安装说明

(1)MySQL的安装包有很多个,作用也不同,在大多数情况下,只需要安装MySQL-server 和MySQL-client,其他的包根据需要来安装。

(2)The server RPM places data underthe/var/lib/mysql directory.The RPM also creates a login accountfor a user named mysql(if one does not exist)to use for running theMySQL server,and creates the appropriate entries in/etc/init.d/tostart the server automatically at boot time.(This means that if you haveperformed a previous installation

相关文档
最新文档