phpMyAdmin は PHP で書かれた MySQL の GUI ベースの管理ツールです。わたくしは、CUI でコマンドで扱っておりますし、本番環境に入れるのはリスクでしかないと感じておりますので使っておりましせん。
ですけれども、やっぱり便利な場面もありますので、インストールいたしました。今まではソースをダウンロードして解凍しまして、Apache と phpMyAdmin の設定ファイルを編集して使っておりました。
でも、yum でもインストールできるのですね♪ウキウキしながら調べてみますと、、、たくさんあるのですねえ。何が違うのか、軽く調べましたのでメモいたします。
ポイント
- yum には epel の phpMyAdmin3 と remi の phpMyAdmin と rpmforge の phpmyadmin の 3 種類がある。
- epel の phpMyAdmin3 → 3.5.8.1
remi の phpMyAdmin → 4.0.2
rpmforge の phpmyadmin → 2.11.11.3 - コマンド
yum search phpmyadmin
yum info phpmyadmin
yum info phpmyadmin3
違いを確かめてみましょう
まずは、yum search です。リポジトリの epel、remi、rpmforge は有効にしてあります。
結果は、所属リポジトリはわかりませんけれども、phpMyAdmin、phpMyAdmin3、phpmyadmin の 3 種類あることがわかります。
[root@localhost ~]# yum search phpmyadmin Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: ftp.nara.wide.ad.jp * epel: ftp.neowiz.com * extras: ftp.nara.wide.ad.jp * remi: mirrors.mediatemple.net * rpmforge: ftp.kddilabs.jp * updates: ftp.nara.wide.ad.jp base | 1.1 kB 00:00 epel | 3.6 kB 00:00 epel/primary_db | 3.1 MB 00:01 extras | 2.1 kB 00:00 pgdg92 | 2.8 kB 00:00 remi | 2.5 kB 00:00 remi/primary_db | 510 kB 00:01 rpmforge | 1.9 kB 00:00 updates | 1.9 kB 00:00 updates/primary_db | 402 kB 00:00 ===================================== Matched: phpmyadmin ===================================== phpMyAdmin.noarch : Handle the administration of MySQL over the World Wide Web phpMyAdmin3.noarch : Handle the administration of MySQL over the World Wide Web phpmyadmin.noarch : Web application to manage MySQL [root@localhost ~]#
個々に見て行きましょう epel の phpMyAdmin3 です。
Version を見ますと、3.5.8.1 とあります。
[root@localhost ~]# yum info phpmyadmin3
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: ftp.nara.wide.ad.jp
* epel: ftp.neowiz.com
* extras: ftp.nara.wide.ad.jp
* remi: mirrors.mediatemple.net
* rpmforge: ftp.kddilabs.jp
* updates: ftp.nara.wide.ad.jp
Available Packages
Name : phpMyAdmin3
Arch : noarch
Version : 3.5.8.1
Release : 1.el5
Size : 6.1 M
Repo : epel
Summary : Handle the administration of MySQL over the World Wide Web
URL : http://www.phpmyadmin.net/
License : GPLv2+
Description: phpMyAdmin is a tool written in PHP intended to handle the administration of
: MySQL over the World Wide Web. Most frequently used operations are supported
: by the user interface (managing databases, tables, fields, relations, indexes,
: users, permissions), while you still have the ability to directly execute any
: SQL statement.
:
: Features include an intuitive web interface, support for most MySQL features
: (browse and drop databases, tables, views, fields and indexes, create, copy,
: drop, rename and alter databases, tables, fields and indexes, maintenance
: server, databases and tables, with proposals on server configuration, execute,
: edit and bookmark any SQL-statement, even batch-queries, manage MySQL users
: and privileges, manage stored procedures and triggers), import data from CSV
: and SQL, export data to various formats: CSV, SQL, XML, PDF, OpenDocument Text
: and Spreadsheet, Word, Excel, LATEX and others, administering multiple servers,
: creating PDF graphics of your database layout, creating complex queries using
: Query-by-example (QBE), searching globally in a database or a subset of it,
: transforming stored data into any format using a set of predefined functions,
: like displaying BLOB-data as image or download-link and much more...
[root@localhost ~]#
つづいて、remi と rpmforge です。
remi は Version が 4.0.2 と最新です。一方で、rpmforge は 2.11.11.3 と相当に古いです。こんなにも古くて、需要があるのでしょうか。。。
[root@localhost ~]# yum info phpmyadmin
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: ftp.nara.wide.ad.jp
* epel: ftp.neowiz.com
* extras: ftp.nara.wide.ad.jp
* remi: mirrors.mediatemple.net
* rpmforge: ftp.kddilabs.jp
* updates: ftp.nara.wide.ad.jp
Installed Packages
Name : phpMyAdmin
Arch : noarch
Version : 4.0.2
Release : 1.el5.remi
Size : 20 M
Repo : installed
Summary : Web based MySQL browser written in php
URL : http://www.phpmyadmin.net/
License : GPLv2+
Description: phpMyAdmin is a tool written in PHP intended to handle the administration of
: MySQL over the Web. Currently it can create and drop databases,
: create/drop/alter tables, delete/edit/add fields, execute any SQL statement,
: manage keys on fields, manage privileges,export data into various formats and
: is available in 50 languages
Available Packages
Name : phpmyadmin
Arch : noarch
Version : 2.11.11.3
Release : 2.el5.rf
Size : 4.2 M
Repo : rpmforge
Summary : Web application to manage MySQL
URL : http://www.phpmyadmin.net/
License : GPL
Description: phpMyAdmin can manage a whole MySQL server (needs a super-user) as well as a
: single database. To accomplish the latter you'll need a properly set up MySQL
: user who can read/write only the desired database. It's up to you to look up
: the appropriate part in the MySQL manual.
[root@localhost ~]#
おわりに
わたくしの場合、PHP も MySQL も remi でインストールしておりますし、phpMyAdmin を使うときは最新版がよいですし、そのようなわけで、使用するのは remi の phpMyAdmin、バージョンは 4.0.2 一択でございます♪
なお、phpMyAdmin の本家サイトで、今回の情報と見比べたりしておりました。
以上です。
