MySQL インストール手順(CentOS 6)

| コメント(0) | トラックバック(0)
mysql-serverをインストールする。
[root@localhost ~]# yum -y install mysql-server
my.cnfファイルを編集する。
[root@localhost ~]# vi /etc/my.cnf

/etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
default-character-set = utf8

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

[mysql]
default-character-set = utf8

mysqldを起動する。
[root@localhost ~]# /etc/rc.d/init.d/mysqld start
[root@localhost ~]# chkconfig mysqld on

初期設定を行う。
[root@localhost ~]# mysql_secure_installation
   ・
   ・
   ・
Enter current password for root (enter for none): 空Enter
   ・
   ・
   ・
Set root password? [Y/n] 空Enter
New password: 任意のパスワードを入力
Re-enter new password: 任意のパスワードを再入力
   ・
   ・
   ・
Remove anonymous users? [Y/n] 空Enter
   ・
   ・
   ・
Disallow root login remotely? [Y/n] 空Enter
   ・
   ・
   ・
Remove test database and access to it? [Y/n]  空Enter
   ・
   ・
   ・
Reload privilege tables now? [Y/n] 空Enter
   ・
   ・
   ・

トラックバック(0)

トラックバックURL: http://tatsunet.net/cgi-bin/mt/mt-tb.cgi/1503

コメントする

このブログ記事について

このページは、tatsuが2012年1月 1日 16:37に書いたブログ記事です。

ひとつ前のブログ記事は「PHP + Smarty インストール手順」です。

次のブログ記事は「yumでグループ単位のパッケージ管理」です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。

ウェブページ

Powered by Movable Type 5.01