このWebサイト ひつじ帳 は、管理者がWEB関連の技術をまとめた備忘録サイトです。 Linux,CentOS,PHP,MySQL,Blogger,JavaScript,CSS について記録しています。

さくらのVPS/MySQL/インストール

[ さくらVPS/MySQL ]

MySQL インストール


[root@www10000xx ~]# yum -y install mysql-server
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: ftp.nara.wide.ad.jp
 * epel: ftp.iij.ad.jp
 * extras: ftp.nara.wide.ad.jp
 * updates: ftp.nara.wide.ad.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-server.x86_64 0:5.1.69-1.el6_4 will be installed
--> Processing Dependency: mysql = 5.1.69-1.el6_4 for package: mysql-server-5.1.69-1.el6_4.x86_64
--> Processing Dependency: perl-DBI for package: mysql-server-5.1.69-1.el6_4.x86_64
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.1.69-1.el6_4.x86_64
--> Processing Dependency: perl(DBI) for package: mysql-server-5.1.69-1.el6_4.x86_64
--> Running transaction check
---> Package mysql.x86_64 0:5.1.69-1.el6_4 will be installed
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================
 Package                         Arch                    Version                         Repository                Size
========================================================================================================================
Installing:
 mysql-server                    x86_64                  5.1.69-1.el6_4                  updates                  8.7 M
Installing for dependencies:
 mysql                           x86_64                  5.1.69-1.el6_4                  updates                  907 k
 perl-DBD-MySQL                  x86_64                  4.013-3.el6                     base                     134 k
 perl-DBI                        x86_64                  1.609-4.el6                     base                     705 k

Transaction Summary
========================================================================================================================
Install       4 Package(s)

Total download size: 10 M
Installed size: 29 M
Downloading Packages:
(1/4): mysql-5.1.69-1.el6_4.x86_64.rpm                                                           | 907 kB     00:00
(2/4): mysql-server-5.1.69-1.el6_4.x86_64.rpm                                                    | 8.7 MB     00:00
(3/4): perl-DBD-MySQL-4.013-3.el6.x86_64.rpm                                                     | 134 kB     00:00
(4/4): perl-DBI-1.609-4.el6.x86_64.rpm                                                           | 705 kB     00:00
------------------------------------------------------------------------------------------------------------------------
Total                                                                                    15 MB/s |  10 MB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
php-cli-5.2.17-1.1.w5.x86_64 has missing requires of libreadline.so.5()(64bit)
php-common-5.2.17-1.1.w5.x86_64 has missing requires of libcurl.so.3()(64bit)
  Installing : perl-DBI-1.609-4.el6.x86_64                                                                          1/4
  Installing : perl-DBD-MySQL-4.013-3.el6.x86_64                                                                    2/4
  Installing : mysql-5.1.69-1.el6_4.x86_64                                                                          3/4
  Installing : mysql-server-5.1.69-1.el6_4.x86_64                                                                   4/4
  Verifying  : perl-DBD-MySQL-4.013-3.el6.x86_64                                                                    1/4
  Verifying  : mysql-server-5.1.69-1.el6_4.x86_64                                                                   2/4
  Verifying  : mysql-5.1.69-1.el6_4.x86_64                                                                          3/4
  Verifying  : perl-DBI-1.609-4.el6.x86_64                                                                          4/4

Installed:
  mysql-server.x86_64 0:5.1.69-1.el6_4

Dependency Installed:
  mysql.x86_64 0:5.1.69-1.el6_4        perl-DBD-MySQL.x86_64 0:4.013-3.el6        perl-DBI.x86_64 0:1.609-4.el6

Complete!
[root@www10000xx ~]#

MySQL 起動


[root@www10000xx ~]# service mysqld start
MySQL データベースを初期化中:  Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

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 www10000xx.sakura.ne.jp password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

                                                           [  OK  ]
mysqld を起動中:                                           [  OK  ]
[root@www10000xx ~]#

自動起動 設定


##■ 自動起動 設定の確認
[root@www10000xx ~]# chkconfig --list mysqld
mysqld          0:off   1:off   2:off   3:off   4:off   5:off   6:off
[root@www10000xx ~]#

##■ 自動起動 設定を ON にする
[root@www10000xx ~]# chkconfig mysqld on
[root@www10000xx ~]#

##■  自動起動 設定の再確認
[root@www10000xx ~]# chkconfig --list mysqld
mysqld          0:off   1:off   2:on    3:on    4:on    5:on    6:off
[root@www10000xx ~]#

[ MySQL 設定 ] へ続く

0 件のコメント:

人気記事

アーカイブ

このブログを検索