カテゴリー
Linux

CentOSにMySQLをインストールできませんでした。yumのばかぁ

LAMP環境を構築してクールにウェブを運用、、、できたらいいなあ!ということで、MySQLをインストールします。WordPressで使うデータベースを構築が目的でした。

やってみます。

まずはインストールされるバージョンを確認しまししょう。

[root@vps ~]# yum info mysql
Loaded plugins: fastestmirror
Repository 'vz-base' is missing name in configuration, using id
Repository 'vz-updates' is missing name in configuration, using id
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* epel: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* remi: remi-mirror.dedipower.com
* rpmforge: apt.sw.be
* updates: ftp.iij.ad.jp
base                                                                      | 1.1 kB     00:00
epel                                                                      | 3.7 kB     00:00
epel/primary_db                                                           | 3.2 MB     00:00
extras                                                                    | 2.1 kB     00:00
remi                                                                      | 2.5 kB     00:00
rpmforge                                                                  | 1.1 kB     00:00
updates                                                                   | 1.9 kB     00:00
updates/primary_db                                                        | 464 kB     00:00
vz-base                                                                   |  951 B     00:00
vz-updates                                                                |  951 B     00:00
Available Packages
Name       : mysql
Arch       : i386
Version    : 5.5.19
Release    : 1.el5.remi
Size       : 7.5 M
Repo       : remi
Summary    : MySQL client programs and shared libraries
URL        : http://www.mysql.com
License    : GPLv2 with exceptions
Description: MySQL is a multi-user, multi-threaded SQL database server. MySQL is a
           : client/server implementation consisting of a server daemon (mysqld)
           : and many different client programs and libraries. The base package
           : contains the standard MySQL client programs and generic MySQL files.

インストールします。

[root@vps ~]# yum install mysql
Loaded plugins: fastestmirror
Repository 'vz-base' is missing name in configuration, using id
Repository 'vz-updates' is missing name in configuration, using id
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* epel: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* remi: rpms.famillecollet.com
* rpmforge: apt.sw.be
* updates: ftp.iij.ad.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql.i386 0:5.5.19-1.el5.remi set to be updated
--> Processing Dependency: mysql-libs = 5.5.19-1.el5.remi for package: mysql
--> Running transaction check
---> Package mysql-libs.i386 0:5.5.19-1.el5.remi set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================
Package                Arch             Version                          Repository        Size
=================================================================================================
Installing:
mysql                  i386             5.5.19-1.el5.remi                remi             7.5 M
Installing for dependencies:
mysql-libs             i386             5.5.19-1.el5.remi                remi             1.1 M

Transaction Summary
=================================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)

Total download size: 8.7 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): mysql-libs-5.5.19-1.el5.remi.i386.rpm                              | 1.1 MB     00:07
(2/2): mysql-5.5.19-1.el5.remi.i386.rpm                                   | 7.5 MB     00:44
-------------------------------------------------------------------------------------------------
Total                                                            166 kB/s | 8.7 MB     00:53
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction

WARNING : This MySQL RPM is not an official Fedora/Redhat build and it
overrides the official one. Don't file bugs on Fedora Project nor Redhat.
Use dedicated forums http://forums.famillecollet.com/

  Installing     : mysql-libs                                                                1/2
  Installing     : mysql                                                                     2/2

Installed:
  mysql.i386 0:5.5.19-1.el5.remi

Dependency Installed:
  mysql-libs.i386 0:5.5.19-1.el5.remi

Complete!

あれ????????設定ファイルの/etc/my.cnf はあるのに、起動などをするための/etc/init.d/mysqld がありません。。。変だなと思ってよくよく調べてみますと、mysqlではなくて、mysql-serverをインストールしないと行けないみたいです><。バージョン確認のときでもSummary : MySQL client programs and shared librariesって書いてありましたし。。。ということで、アンインストールします。さようなら。

[root@vps ~]# yum remove mysql
Loaded plugins: fastestmirror
Repository 'vz-base' is missing name in configuration, using id
Repository 'vz-updates' is missing name in configuration, using id
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package mysql.i386 0:5.5.19-1.el5.remi set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================
Package           Arch             Version                          Repository             Size
=================================================================================================
Removing:
mysql             i386             5.5.19-1.el5.remi                installed              28 M

Transaction Summary
=================================================================================================
Remove        1 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing        : mysql                                                                     1/1

Removed:
  mysql.i386 0:5.5.19-1.el5.remi

Complete!

コメントを残す