Vine Linux に MySQL インストール
仕事でVine LinuxにMySQLをインストールするという 案件を受けた。
調べてみると、どうやらVine Linuxでは、「apt-get」というLinuxコマンドを使うらしい。
というわけで、早速実施。
[root@localhost sunplus]# apt-get install MySQL-server MySQL-Max MySQL-client MySQL-shared
パッケージリストを読みこんでいます... 完了
依存情報ツリーを作成しています... 完了
* MySQL-shared は既に最新バージョンがインストールされています。
以下の追加パッケージがインストールされます:
perl-DBI
以下のパッケージが新たにインストールされます:
MySQL-Max MySQL-client MySQL-server perl-DBI
アップグレード: 0 個, 新規インストール: 4 個, 削除: 0 個, 保留: 51 個
24.2MB/24.8MB のアーカイブを取得する必要があります。
展開後に 51.4MB のディスク容量が追加消費されます。
続行しますか? [Y/n]y
エラー http://updates.vinelinux.org 4.1/i386/plus MySQL-client 5.0.27-0vl3
404 Not Found
エラー http://updates.vinelinux.org 4.1/i386/plus MySQL-server 5.0.27-0vl3
404 Not Found
エラー http://updates.vinelinux.org 4.1/i386/plus MySQL-Max 5.0.27-0vl3
404 Not Found
以下の取得に失敗しました: http://updates.vinelinux.org/apt/4.1/i386/RPMS.plus/MySQL-client-5.0.27-0vl3.i386.rpm 404 Not Found
以下の取得に失敗しました: http://updates.vinelinux.org/apt/4.1/i386/RPMS.plus/MySQL-server-5.0.27-0vl3.i386.rpm 404 Not Found
以下の取得に失敗しました: http://updates.vinelinux.org/apt/4.1/i386/RPMS.plus/MySQL-Max-5.0.27-0vl3.i386.rpm 404 Not Found
E: 幾つかのアーカイブが取得できません。'apt-get update' を実行するか、--fix-missing オプションを試して下さい。
おや?何やらエラーで入らない。
よくみたら、「apt-get update」をしろと書かれてますね。
システムのアップデートというのは、実際のところ、他のプログラムなどに与える影響が怖いのですが、今回はとりあえず実施。
[root@localhost sunplus]# apt-get update
取得:1 http://updates.vinelinux.org 4.1/i386 release [2262B]
2262B を 0s 秒で取得しました (8078B/s)
取得:1 http://updates.vinelinux.org 4.1/i386/main pkglist [287kB]
取得:2 http://updates.vinelinux.org 4.1/i386/main release [158B]
取得:3 http://updates.vinelinux.org 4.1/i386/plus pkglist [513kB]
取得:4 http://updates.vinelinux.org 4.1/i386/plus release [166B]
取得:5 http://updates.vinelinux.org 4.1/i386/updates pkglist [244kB]
取得:6 http://updates.vinelinux.org 4.1/i386/updates release [171B]
取得:7 http://updates.vinelinux.org 4.1/i386/nonfree pkglist [23.8kB]
取得:8 http://updates.vinelinux.org 4.1/i386/nonfree release [170B]
取得:9 http://updates.vinelinux.org 4.1/i386/main srclist [119kB]
取得:10 http://updates.vinelinux.org 4.1/i386/plus srclist [222kB]
取得:11 http://updates.vinelinux.org 4.1/i386/updates srclist [51.0kB]
取得:12 http://updates.vinelinux.org 4.1/i386/nonfree srclist [22.1kB]
1481kB を 2s 秒で取得しました (577kB/s)
パッケージリストを読みこんでいます... 完了
依存情報ツリーを作成しています... 完了
Del MySQL-shared 5.0.27-0vl3 [1294kB]
Del postgresql-libs 8.1.5-0vl0 [210kB]
Del php-pgsql 4.4.7-0vl2 [52.9kB]
Del postgresql-server 8.1.5-0vl0 [4440kB]
Del php-apache2 4.4.7-0vl2 [3578kB]
Del postgresql-jdbc 8.1.5-0vl0 [1115kB]
Del dovecot 1.0-0.rc17.0vl1 [1575kB]
Del php-pear 4.4.7-0vl2 [423kB]
Del postgresql 8.1.5-0vl0 [2900kB]
Del php 4.4.7-0vl2 [2003kB]
そして、再度、「apt-get」を実施。
[root@localhost sunplus]# apt-get install MySQL-server MySQL-Max MySQL-client MySQL-shared
パッケージリストを読みこんでいます... 完了
依存情報ツリーを作成しています... 完了
以下の追加パッケージがインストールされます:
perl-DBI
以下のパッケージがアップグレードされます:
MySQL-shared
以下のパッケージが新たにインストールされます:
MySQL-Max MySQL-client MySQL-server perl-DBI
アップグレード: 1 個, 新規インストール: 4 個, 削除: 0 個, 保留: 164 個
26.3MB/26.9MB のアーカイブを取得する必要があります。
展開後に 53.2MB のディスク容量が追加消費されます。
続行しますか? [Y/n]y
取得:1 http://updates.vinelinux.org 4.1/i386/plus MySQL-client 5.0.27-0vl6 [6490kB]
取得:2 http://updates.vinelinux.org 4.1/i386/plus MySQL-server 5.0.27-0vl6 [14.8MB]
取得:3 http://updates.vinelinux.org 4.1/i386/plus MySQL-Max 5.0.27-0vl6 [3354kB]
取得:4 http://updates.vinelinux.org 4.1/i386/plus MySQL-shared 5.0.27-0vl6 [1573kB]
26.3MB を 9s 秒で取得しました (2820kB/s)
変更を適用しています...
準備中... ########################################### [100%]
1:perl-DBI ########################################### [ 20%]
2:MySQL-client ########################################### [ 40%]
3:MySQL-server ########################################### [ 60%]
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.
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
Starting MySQL.[ OK ]
4:MySQL-Max ########################################### [ 80%]
Restarting mysqld.
5:MySQL-shared ########################################### [100%]
完了
[root@localhost sunplus]#
[root@localhost sunplus]# /sbin/chkconfig mysql on (←MySQL自動起動設定)
[root@localhost sunplus]# /sbin/chkconfig --list mysql (←MySQL自動起動設定確認)
mysql 0:off 1:off 2:on 3:on 4:on 5:on 6:off (←2~5がonを確認)
無事にインストールを完了しました。
タグ
2009年11月17日|コメント (0)|トラックバック (0)
カテゴリー:Linux
トラックバック(0)
http://web-gijyutu.com/tools/mtos42/mt-tb.cgi/3
コメントを投稿する
(初めてのコメントの時は、コメントが表示されるためにこのブログのオーナーの承認が必要になることがあります。承認されるまでコメントは表示されませんのでしばらくお待ちください)


