没有合适的资源?快使用搜索试试~ 我知道了~
mysql在linux64位下安装步骤完整版.pdf
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 126 浏览量
2021-11-10
18:50:43
上传
评论
收藏 1023KB PDF 举报
温馨提示
试读
15页
mysql在linux64位下安装步骤完整版.pdf
资源推荐
资源详情
资源评论
一
.
下载说明
前期的一些准备说明,参考:
MySQL 发展史
http://blog.csdn.net/tianlesoftware/article/details/6999245
Mysql 不同版本 说明
http://blog.csdn.net/tianlesoftware/article/details/6723117
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, “ InstallingMySQL 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, “ InstallingMySQL 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, “ Startingand Stopping MySQL Automatically ”.
--这里要注意一个问题,就是设置 MySQL 的自启动。 如果使用 native package 来安
装,会自动设置为自启动,如果使用其他的方式,如 source ,binary 和 RPM ,就需要单独
的来设置自启动。
1.2 下载安装包
Community Server 下载地址: http://www.mysql.com/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
and have made changes to its startup script,you may want to make a copy of the script so
that you do not lose it when youinstall a newer RPM.)
(3)During RPM installation, a usernamed mysql and a group named mysql are created
on thesystem. This is done using the useradd, groupadd,and usermod commands. Those
commands require appropriateadministrative privileges, which is required for locally
managed users andgroups (as listed in the /etc/passwd and /etc/groupfiles) by theRPM
installation process being run by root.
--在 MySQL 安装时,会创建 mysql 用户和 mysql 组。
(4)MySQL 的相关目录说明
/usr/bin : Client programs and scripts -- mysqladmin mysqldump 等命令
/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, SQLfor database installation
--mysql.server 命令及配置文件
/usr/share/sql-bench : Benchmarks
/etc/rc.d/init.d/ : 启动脚本文件 mysql 的目录
2.2 安装
将下载的安装包拷贝至 /home/mysql 目录下:
--安装 Server 端:
[root@localhost mysql]# rpm -ivh MySQL-server-5.5.33-1.linux2.6.x86_64.rpm
Preparing... ########################################### [100%]
1:MySQL-server ########################################### [100%]
剩余14页未读,继续阅读
资源评论
yanfengxiaozhan
- 粉丝: 0
- 资源: 5618
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功