Linux之下MySQL安装的三种方案的比较

如何在Linux操作系统下对MySQL进行正确的安装,以及有对不同MySQL安装的方案的比较。

其中包括使用rpm对其进行安装,二进制安装,源码安装这三种方案的比较。

  安装方法比较

  一.使用rpm安装

  安装简单,适合初学者学习使用

  1. 需要单独下载客户端和服务器

  2. 安装路径不灵活,默认路径不能修改,一台服务器只能MySQL安装一个 MySQL。

        --------------------------------下面是oracle官方文档的部分指导说明:---------------------------------

  文件布局

  MySQL Installation Layout for Linux RPM Packages from the MySQLDeveloper Zone

Directory Contents of Directory
/usr/bin Client programs and scripts
/usr/sbin The mysqld server
/var/lib/mysql Log files, databases
/usr/share/info MySQL 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 databaseinstallation
/usr/share/sql-bench Benchmarks

 MySQL Linux RPM Package Platforms

PLATFORM Value Intended Use
linux_glibc25 Platform independent, should run on any Linux distribution that supportsglibc 2.5
rhel5 Red Hat Enterprise Linux 5
el6, el7 Enterprise Linux 6 or 7
sles11, sles12 SUSE Linux Enterprise Server 11 or 12

In MySQL 5.6, only linux_glibc2.5 packages are available currently.

The CPU value indicates the processor type or family for which the package is built, as shown in the following table.

<
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值