MySQL安装失败

来源:1-24 -Hive环境搭建

魔法少女德莉傻

2018-05-18

在安装SQL的时候,我用的命令是# yum install mysql-server,但是安装到最后的时候有报错。

报错是:

Error Downloading Packages:

  mysql-5.1.73-8.el6_8.x86_64: failure: Packages/mysql-5.1.73-8.el6_8.x86_64.rpm from base: [Errno 256] No more mirrors to try.

  mysql-server-5.1.73-8.el6_8.x86_64: failure: Packages/mysql-server-5.1.73-8.el6_8.x86_64.rpm from base: [Errno 256] No more mirrors to try.

  mysql-libs-5.1.73-8.el6_8.x86_64: failure: Packages/mysql-libs-5.1.73-8.el6_8.x86_64.rpm from base: [Errno 256] No more mirrors to try.

  perl-DBD-MySQL-4.013-3.el6.x86_64: failure: Packages/perl-DBD-MySQL-4.013-3.el6.x86_64.rpm from base: [Errno 256] No more mirrors to try.

  perl-DBI-1.609-4.el6.x86_64: failure: Packages/perl-DBI-1.609-4.el6.x86_64.rpm from base: [Errno 256] No more mirrors to try.

然后启动的时候显示:

[root@hadoop000 hadoop]# /etc/init.d/mysqld restart

bash: /etc/init.d/mysqld: No such file or directory

写回答

2回答

Michael_PK

2018-05-19

你可以加群问,更加方便

0
0

Michael_PK

2018-05-18

两者解决方案:1)yum先卸载再安装;2)不用yum,采用MySQL源码编译安装。这两种方式百度一搜都有很多文章。

0
12
Michael_PK
回复
魔法少女德莉傻
你是Mac?那直接在Mac上搭建就行了,都不需要VM
2018-05-19
共12条回复

以慕课网日志分析为例 进入大数据Spark SQL的世界

快速转型大数据:Hadoop,Hive,SparkSQL步步为赢

1644 学习 · 1129 问题

查看课程