本来想安装最新的5.6.13-1版本,下载下来后,依赖的包rpmlib无处下载,无法只得作罢。从Foreda8的安装光盘中找到了以下文件:

mysql-5.0.45-4.fc8.i386.rpm

mysql-connector-java-3.1.12-3.fc6.i386.rpm

mysql-connector-odbc-3.51.14r248-2.fc8.i386.rpm

mysql-libs-5.0.45-4.fc8.i386.rpm

mysql-server-5.0.45-4.fc8.i386.rpm

估计安装好MySQL有上面这些包就行了。

首先执行的是# rpm -ivh mysql-5.0.45-4.fc8.i386.rpm
warning: mysql-5.0.45-4.fc8.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
        perl(DBI) is needed by mysql-5.0.45-4.fc8.i386

于是又到光盘里找来了perl-DBI-1.58-2.fc8.i386.rpm ,继续安装。

# rpm -ivh perl-DBI-1.58-2.fc8.i386.rpm
warning: perl-DBI-1.58-2.fc8.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:perl-DBI               ########################################### [100%]

这回不错,没啥问题了。再次安装mysql-5.0.45-4.fc8.i386.rpm看看:

# rpm -ivh mysql-5.0.45-4.fc8.i386.rpm
warning: mysql-5.0.45-4.fc8.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
        file /usr/bin/mysql_config from install of mysql-5.0.45-4.fc8 conflicts with file from package MySQL-devel-advanced-5.6.13-1.rhel5
        file /usr/share/man/man1/mysql_config.1.gz from install of mysql-5.0.45-4.fc8 conflicts with file from package MySQL-devel-advanced-5.6.13-1.rhel5

原来是和之前安装的MySQL-devel-advanced-5.6.13-1.rhel5冲突了,于是执行下面命令删掉它。

# rpm -e MySQL-devel-advanced-5.6.13-1.rhel5

接下来再安装mysql-server-5.0.45-4.fc8.i386.rpm

# rpm -ivh mysql-server-5.0.45-4.fc8.i386.rpm
warning: mysql-server-5.0.45-4.fc8.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
        mysql = 5.0.45-4.fc8 is needed by mysql-server-5.0.45-4.fc8.i386
        perl-DBD-MySQL is needed by mysql-server-5.0.45-4.fc8.i386

又少一个perl-DBD-MySQL,从光盘中找来了perl-DBD-MySQL-4.005-2.fc8.1.i386.rpm 继续安:

# rpm -ivh perl-DBD-MySQL-4.005-2.fc8.1.i386.rpm
warning: perl-DBD-MySQL-4.005-2.fc8.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:perl-DBD-MySQL         ########################################### [100%]

OK,万里长征又前进了一步,再安装mysql-5.0.45-4.fc8.i386.rpm,成功了

# rpm -ivh mysql-5.0.45-4.fc8.i386.rpm
warning: mysql-5.0.45-4.fc8.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:mysql                  ########################################### [100%]

这把取得阶段性成果了。然后执行

# rpm -ivh mysql-server-5.0.45-4.fc8.i386.rpm
warning: mysql-server-5.0.45-4.fc8.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:mysql-server           ########################################### [100%]

呦西,看来安上了。看看3306端口有没有被监听:

# netstat -nat
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State      
tcp        0      0 0.0.0.0:59782               0.0.0.0:*                   LISTEN      
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      
tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      
tcp        0      0 :::22                       :::*                        LISTEN

没有,估计安好后MySQL没有自动启动。

进入目录:

# cd /etc/rc.d/init.d

执行# ./mysqld start   (Usage: ./mysqld {start|stop|status|condrestart|restart})

Initializing MySQL database:  Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
                                                           [  OK  ]
Starting MySQL:                                            [  OK  ]

再看看端口3306

# netstat -nat
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State      
tcp        0      0 0.0.0.0:59782               0.0.0.0:*                   LISTEN      
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      
tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      
tcp        0      0 :::22                       :::*                        LISTEN

再在命令行里输入MySQL,mysql的命令行就出来了。

执行show databases;

熟悉的information_schma,mysql,test就显示出来了。

到此安装成功。

如果上文有什么问题或是疑点,请指点,先谢谢了。

转载于:https://www.cnblogs.com/xiandedanteng/p/3267871.html

在Fedora8上安装MySQL5.0.45的过程相关推荐

  1. linux mysql 5.0.45_linux 下安装mysql-5.0.45.tar.gz

    最近体会到了写文档的重要性,虽然以前安装过mysql,但这次决定吧文档写下来 只是安装个测试服务器,所以还是用了以前的安装包​mysql-5.0.45.tar.gz(我想我会把它放在移动硬盘里面的) ...

  2. linux mysql 5.0.45_RedHat糸列Mysql-5.0.45的安装

    RedHat糸列Mysql-5.0.45的安装 发布时间:2007-11-22 00:29:11来源:红联作者:itchinax # chmod 755 mysql-5.0.45.tar.gz # t ...

  3. centos akonadi mysql,MySQL数据库之在CentOS7上安装MySQL5.7

    本文主要向大家介绍了MySQL数据库之在CentOS7上安装MySQL5.7 ,通过具体的内容向大家展现,希望对大家学习MySQL数据库有所帮助. 获取RPM包 # wget https://dev. ...

  4. Centos7 上安装 mysql5.7

    Centos7 上安装 mysql5.7 **文章没有图片效果,想看带图片的到文章末尾加我微信公众号,搜索标题就能看到了** ​ 文章没有图片效果,想看带图片的到文章末尾加我微信公众号,搜索标题就能看 ...

  5. 在 CentOS7 上安装 MySQL5.7

    在 CentOS7 上安装 MySQL5.7 1 通过 SecureCRT 连接到阿里云 CentOS7 服务器: 2 进入到目录 /usr/local/ 中:  cd /usr/local/ 3 创 ...

  6. 在centOS7中装mysql_在 CentOS7 上安装 MySQL5.7

    在 CentOS7 上安装 MySQL5.7 1 通过 SecureCRT 连接到阿里云 CentOS7 服务器: 2 进入到目录 /usr/local/ 中: cd /usr/local/ 3 创建 ...

  7. 通过xshell在linux上安装mysql5.7(终极版)

    通过xshell在linux上安装mysql5.7(终极版) 0)通过xshell连接到远程服务器 1)彻底删除原来安装的mysql 首先查看:rpm -qa|grep -i mysql 删除操作(一 ...

  8. linux * 10 * * * *,Linux 上安装RealPlayer10.0 (*.bin)

    Linux 上安装RealPlayer10.0 (*.bin) 发布时间:2008-02-01 00:48:45来源:红联作者:opius realplayer是一个比较好的视频音频播放器,支持多种常 ...

  9. ubuntu12.4上安装minigui3.0.12

    在ubuntu12.4上安装minigui3.0.12 一下载源文件 移植所需的文件可以从minigui官网下载:http://www.minigui.org/en/download/ 主要文件有: ...

最新文章

  1. 原创 深度 技术:WatchStor焦点周刊创刊号
  2. 【ABAP】在线预览文档对象的开发实现
  3. EelemntUI中e-form表单校验的使用以及表单校验的规则
  4. linux系统fuser命令,Linux系统使用Fuser命令的方法
  5. 虚拟dom_从0到1实现一个虚拟DOM
  6. 打开文件对话框的演练 c# 1614821885
  7. 查看本机装的 JDK 是32位还是64位的
  8. IDEA的使用,手把手带你快速入门IDEA
  9. 电脑遇到打印机脱机状态如何解决
  10. (转)MTK 消息分发及窗口管理
  11. asp.net 通过context.RewritePath和ashx开发接口
  12. OPENNLP——java的NLP工具
  13. dumpsys使用方法
  14. python之常用的数据类型
  15. 服务器带的虚拟软驱有什么用,云服务器是干什么用的?摩杜云带你去了解!
  16. js基础知识总结大全
  17. POJ1328(贪心)题解
  18. A+B,氵题一道,84种解法!大佬羡慕
  19. infer的用法_使用 Infer 进行代码扫描
  20. ebay获取商品详情 API接口

热门文章

  1. VirtualBox 启动时提示“获取 VirtualBox COM 对象失败”的解决
  2. java 集合接口原理_图文剖析java集合框架—Set接口
  3. 002_SpringIOC
  4. python redis集群_Python3 redis集群连接 (带密码验证)
  5. httpservletrequest和requestbody是否可以同时使用_净水器超过三天没用,是否可以直接使用?...
  6. mysql sycho_Java面试题 - osc_p1rj1z8j的个人空间 - OSCHINA - 中文开源技术交流社区
  7. python如何统计字典里面健的数量_Python中使用Counter进行字典创建以及key数量统计的方法...
  8. Android开发常用开源框架2
  9. 本地YUM源配置并设置成本地同步网络源,摆脱依赖包
  10. android游戏加载,Android 游戏引擎libgdx 资源加载进度百分比显示案例分析