3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOS6.5にMySQL5.5.38をインストールする手順

Posted at

半年間、MySQLを基礎からやり直すことにしたので、その間に勉強したことをQiitaに投稿していきます。

CentOS6.5にMySQL5.5.38をインストールする手順

必要なパッケージをローカルにwgetで取ってくる

# root権限になる
$ sudo -s

# ディレクトリを移動しておく
$ cd /usr/local/src

# wgetコマンドで必要なrpmパッケージを取ってくる
$ wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-client-5.5.38-1.linux2.6.x86_64.rpm
$ wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-server-5.5.38-1.linux2.6.x86_64.rpm
$ wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-shared-compat-5.5.38-1.linux2.6.x86_64.rpm

ファイルの確認

$ ls -l
-rw-r--r-- 1 root root 17713894 May 12  2014 MySQL-client-5.5.38-1.linux2.6.x86_64.rpm
-rw-r--r-- 1 root root 50535068 May 12  2014 MySQL-server-5.5.38-1.linux2.6.x86_64.rpm
-rw-r--r-- 1 root root  5179375 May 14  2014 MySQL-shared-compat-5.5.38-1.linux2.6.x86_64.rpm

インストール

$ yum localinstall MySQL-shared-compat-5.5.38-1.linux2.6.x86_64.rpm
$ yum localinstall MySQL-server-5.5.38-1.linux2.6.x86_64.rpm
$ yum localinstall MySQL-client-5.5.38-1.linux2.6.x86_64.rpm

MySQLのバージョン確認

$ mysql --version
mysql  Ver 14.14 Distrib 5.5.38, for Linux (x86_64) using readline 5.1

とりあえずMySQLプロセスを立ち上げてみる

$ /etc/init.d/mysql start
Starting MySQL.. SUCCESS!

MySQLへログインする

$ mysql -uroot
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.5.38 MySQL Community Server (GPL)

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> 

無事インストールと起動が確認できたので、とりあえずお疲れ様でした(`・ω・´)ゞ

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?