MySQL のインストール

Debian LS-XHL

ちょっと Web サーバが必要になって、 死蔵している LS-XHL を Web サーバに仕立てることにした。

Web サーバが動作するようになったので、次は、CMS。
MovableType で MySQL が必要なので、インストールする

パッケージの確認

インストールすべきパッケージを確認する。
root@xhl:~# apt-cache search mysql | grep '^mysql'
mysql-client - MySQL database client (metapackage depending on the latest version)
mysql-client-5.5 - MySQL database client binaries
mysql-common - MySQL database common files, e.g. /etc/mysql/my.cnf
mysql-server - MySQL database server (metapackage depending on the latest version)
mysql-server-5.5 - MySQL database server binaries and system database setup
mysql-server-core-5.5 - MySQL database server binaries
mysql-source-5.5 - MySQL source
mysql-testsuite-5.5 - MySQL testsuite
mysql-mmm-agent - Multi-Master Replication Manager for MySQL - agent daemon
mysql-mmm-common - Multi-Master Replication Manager for MySQL - common files
mysql-mmm-monitor - Multi-Master Replication Manager for MySQL - monitoring daemon
mysql-mmm-tools - Multi-Master Replication Manager for MySQL - tools
mysql-proxy - high availability, load balancing and query modification for mysql
mysql-utilities - collection of scripts for managing MySQL servers
mysql-workbench - MySQL Workbench - a visual database modeling, administration and queuing tool
mysql-workbench-data - MySQL Workbench -- architecture independent data
mysqltcl - interface to the MySQL database for the Tcl language
mysqltuner - high-performance MySQL tuning script
root@xhl:~#
やっぱりよくわからないが、mysql-client と mysql-server あたりか

インストール

mysql-client と mysql-server をインストールする。
root@xhl:~# apt-get install mysql-client mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
  mysql-client-5.5 mysql-common mysql-server-5.5 mysql-server-core-5.5
Suggested packages:
  libipc-sharedcache-perl libterm-readkey-perl tinyca
The following NEW packages will be installed:
  libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
  mysql-client mysql-client-5.5 mysql-common mysql-server mysql-server-5.5
  mysql-server-core-5.5
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 8269 kB of archives.
After this operation, 90.4 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://security.debian.org/ wheezy/updates/main mysql-common all 5.5.40-0+wheezy1 [75.5 kB]
Get:2 http://ftp.jp.debian.org/debian/ wheezy/main libaio1 armel 0.3.109-3 [8932 B]
Get:3 http://ftp.jp.debian.org/debian/ wheezy/main libdbi-perl armel 1.622-1+deb7u1 [892 kB]
Get:4 http://ftp.jp.debian.org/debian/ wheezy/main libdbd-mysql-perl armel 4.021-1+b1 [124 kB]
Get:5 http://ftp.jp.debian.org/debian/ wheezy/main libhtml-template-perl all 2.91-1 [72.0 kB]
Get:6 http://security.debian.org/ wheezy/updates/main libmysqlclient18 armel 5.5.40-0+wheezy1 [621 kB]
Get:7 http://security.debian.org/ wheezy/updates/main mysql-client-5.5 armel 5.5.40-0+wheezy1 [1436 kB]
Get:8 http://security.debian.org/ wheezy/updates/main mysql-server-core-5.5 armel 5.5.40-0+wheezy1 [3046 kB]
Get:9 http://security.debian.org/ wheezy/updates/main mysql-server-5.5 armel 5.5.40-0+wheezy1 [1846 kB]
Get:10 http://security.debian.org/ wheezy/updates/main mysql-client all 5.5.40-0+wheezy1 [73.8 kB]
Get:11 http://security.debian.org/ wheezy/updates/main mysql-server all 5.5.40-0+wheezy1 [73.9 kB]
Fetched 8269 kB in 20s (410 kB/s)
Preconfiguring packages ...


Package configuration


  lqqqqqqqqqqqqqqqqqqqqu Configuring mysql-server-5.5 tqqqqqqqqqqqqqqqqqqqqqk
  x While not mandatory, it is highly recommended that you set a password   x
  x for the MySQL administrative "root" user.                               x
  x                                                                         x
  x If this field is left blank, the password will not be changed.          x
  x                                                                         x
  x New password for the MySQL "root" user:                                 x
  x                                                                         x
  x *******________________________________________________________________ x
  x                                                                         x
  x                                 <Ok>                                    x
  x                                                                         x
  mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj


Package configuration




                lqqqqqqu Configuring mysql-server-5.5 tqqqqqqqk
                x                                             x
                x                                             x
                x Repeat password for the MySQL "root" user:  x
                x                                             x
                x *******____________________________________ x
                x                                             x
                x                   <Ok>                      x
                x                                             x
                mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj


Selecting previously unselected package libaio1:armel.
(Reading database ... 15845 files and directories currently installed.)
Unpacking libaio1:armel (from .../libaio1_0.3.109-3_armel.deb) ...
Selecting previously unselected package mysql-common.
Unpacking mysql-common (from .../mysql-common_5.5.40-0+wheezy1_all.deb) ...
Selecting previously unselected package libmysqlclient18:armel.
Unpacking libmysqlclient18:armel (from .../libmysqlclient18_5.5.40-0+wheezy1_armel.deb) ...
Selecting previously unselected package libdbi-perl.
Unpacking libdbi-perl (from .../libdbi-perl_1.622-1+deb7u1_armel.deb) ...
Selecting previously unselected package libdbd-mysql-perl.
Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.021-1+b1_armel.deb) ...
Selecting previously unselected package mysql-client-5.5.
Unpacking mysql-client-5.5 (from .../mysql-client-5.5_5.5.40-0+wheezy1_armel.deb) ...
Selecting previously unselected package mysql-server-core-5.5.
Unpacking mysql-server-core-5.5 (from .../mysql-server-core-5.5_5.5.40-0+wheezy1_armel.deb) ...
Processing triggers for man-db ...
Setting up mysql-common (5.5.40-0+wheezy1) ...
Selecting previously unselected package mysql-server-5.5.
(Reading database ... 16197 files and directories currently installed.)
Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.40-0+wheezy1_armel.deb) ...
Selecting previously unselected package libhtml-template-perl.
Unpacking libhtml-template-perl (from .../libhtml-template-perl_2.91-1_all.deb) ...
Selecting previously unselected package mysql-client.
Unpacking mysql-client (from .../mysql-client_5.5.40-0+wheezy1_all.deb) ...
Selecting previously unselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.5.40-0+wheezy1_all.deb) ...
Processing triggers for man-db ...
Setting up libaio1:armel (0.3.109-3) ...
Setting up libmysqlclient18:armel (5.5.40-0+wheezy1) ...
Setting up libdbi-perl (1.622-1+deb7u1) ...
Setting up libdbd-mysql-perl (4.021-1+b1) ...
Setting up mysql-client-5.5 (5.5.40-0+wheezy1) ...
Setting up mysql-server-core-5.5 (5.5.40-0+wheezy1) ...
Setting up mysql-server-5.5 (5.5.40-0+wheezy1) ...
[ ok ] Stopping MySQL database server: mysqld.
141030  0:16:21 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
141030  0:16:21 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
141030  0:16:21 [Note] Plugin 'FEDERATED' is disabled.
141030  0:16:21 InnoDB: The InnoDB memory heap is disabled
141030  0:16:21 InnoDB: Mutexes and rw_locks use GCC atomic builtins
141030  0:16:21 InnoDB: Compressed tables use zlib 1.2.7
141030  0:16:21 InnoDB: Using Linux native AIO
141030  0:16:21 InnoDB: Initializing buffer pool, size = 128.0M
141030  0:16:21 InnoDB: Completed initialization of buffer pool
141030  0:16:21 InnoDB: highest supported file format is Barracuda.
141030  0:16:21  InnoDB: Waiting for the background threads to start
141030  0:16:22 InnoDB: 5.5.40 started; log sequence number 1595675
141030  0:16:22  InnoDB: Starting shutdown...
141030  0:16:23  InnoDB: Shutdown completed; log sequence number 1595675
[ ok ] Starting MySQL database server: mysqld . ..
[info] Checking for tables which need an upgrade, are corrupt or were
not closed cleanly..
Setting up libhtml-template-perl (2.91-1) ...
Setting up mysql-client (5.5.40-0+wheezy1) ...
Setting up mysql-server (5.5.40-0+wheezy1) ...
!root@xhl:~#

できた。

LS-XHL
バッファローダイレクト
楽天市場
amazon
ValuMore


グループの追加
ハックの記録
LinkStation/玄箱 をハックしよう

unzip のインストール

ツイート Tweet to @yasunari_y @yasunari_yをフォロー

Copyright (C) 2003-2014 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市