mysql-serverをインストールする。
/etc/my.cnf
mysqldを起動する。
初期設定を行う。
[root@localhost ~]# yum -y install mysql-servermy.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 ・ ・ ・

コメントする