こんにちは、中島です。
昨日、一昨日は夏休み突入だけあって至る所でアーティストがライブをやってたみたいですね。
こうライブが盛んに行われると夏本番だなーと感じます。
かく言う自分も昨日は、さいたまスーパーアリーナへ水樹奈々さんのライブへまた行ってきました。
(先々週の名古屋ライブ遠征も水樹奈々さんのライブ目的)
3公演も行くといい加減身体が慣れてきますね。今日も筋肉痛かと思ったが、思った以上に痛くない。
人体って不思議っ!
8月はCOLORBOXの本リリースがあり、オタイベントは大型ライブにコミケがあるので中々のハードスケジュール。体調管理をしっかりしてぶっ倒れないようにしなくてはっ!!
<!――ここから本題――>
デフォルトのCentOS5.xのの場合、yumでMySQLをインストールしようとすると古いバージョンのMySQLがインストールされてしまいます。
最新のMySQL5.5が欲しい場合はちょっと一手間が必要なので、備忘録ついでにご紹介しようかと思います。
※旧バージョンのMySQLがすでにインストールされている場合は、必ずアンインストールをすること!
目次
1.remiとepelのリポジトリに最新のMySQLが配布されているので、下記のリポジトリを追加する。
# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm| 
					 1  | 
						http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm を取得中  | 
					
| 
					 1  | 
						準備中...                ########################################### [100%]  | 
					
| 
					 1  | 
						1:epel-release           ########################################### [100%]  | 
					
| 
					 1  | 
						http://rpms.famillecollet.com/enterprise/remi-release-5.rpm を取得中  | 
					
| 
					 1  | 
						準備中...                ########################################### [100%]  | 
					
| 
					 1  | 
						1:remi-release           ########################################### [100%]  | 
					
2.yumの引数に「窶兎nablerepo=remi-test」を付けてMySQLをインストールする。
# yum –enablerepo=remi-test install mysql mysql-server| 
					 1  | 
						Dependencies Resolved  | 
					
| 
					 1 2 3 4 5  | 
						===================================================================================================================== Package                     Arch                  Version                       Repository              Size ===================================================================================================================== Installing: MySQL-server                x86_64                5.5.13-1.rhel5                groonga                 51 M  | 
					
| 
					 1 2 3 4  | 
						Transaction Summary ===================================================================================================================== Install       1 Package(s) Upgrade       0 Package(s)  | 
					
| 
					 1 2  | 
						Total download size: 51 M Is this ok [y/N]:  | 
					
3.mysqldサービスを起動。ついでにサーバ起動時に自動起動するようにする。
# /etc/init.d/mysqld start# chkconfig mysqld on
4.rootでログインして、下記のように表示されればインストール完了。
# mysql -u root| 
					 1  | 
						Welcome to the MySQL monitor.  Commands end with ; or \g.  | 
					
| 
					 1  | 
						Your MySQL connection id is 38182  | 
					
| 
					 1  | 
						Server version: 5.5.13 MySQL Community Server (GPL) by Remi  | 
					
| 
					 1  | 
						Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.  | 
					
| 
					 1 2 3  | 
						Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.  | 
					
| 
					 1  | 
						Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.  | 
					
| 
					 1  | 
						mysql>  | 
					
					
				


