MySQLをインストール


portinstallでMySQLをインストールする。
どのバージョンをインストールするか聞いてくるのでインストールしたいバージョンを選択する。

www# portinstall mysql-server

databases/mysql323-server
databases/mysql40-server
databases/mysql41-server
databases/mysql50-server
databases/mysql51-server
Install 'databases/mysql323-server'? [yes] no
Install 'databases/mysql40-server'? [yes] no
Install 'databases/mysql41-server'? [yes] no
Install 'databases/mysql50-server'? [yes] no
Install 'databases/mysql51-server'? [yes] yes
[Gathering depends for databases/mysql51-server ........ done]

      • > Installing 'mysql-server-5.1.20' from a port (databases/mysql51-server)
      • > Building '/usr/ports/databases/mysql51-server'

===> Cleaning for mysql-server-5.1.20

You may use the following build options:

WITH_CHARSET=charset Define the primary built-in charset (latin1).
WITH_XCHARSET=list Define other built-in charsets (may be 'all').
WITH_COLLATION=collate Define default collation (latin1_swedish_ci).
WITH_OPENSSL=yes Enable secure connections.
WITH_LINUXTHREADS=yes Use the linuxthreads pthread library.
WITH_PROC_SCOPE_PTH=yes Use process scope threads
(try it if you use libpthread).
BUILD_OPTIMIZED=yes Enable compiler optimizations
(use it if you need speed).
BUILD_STATIC=yes Build a static version of mysqld.
(use it if you need even more speed).
WITH_NDB=yes Enable support for NDB Cluster.



install -o root -g wheel -m 555 'mysql.server' '/usr/local/share/mysql/mysql.server'
mysql:*:1006:
You already have a group "mysql", so I will use it.
mysql:*:1006:0::0:0:mysql:/home/mysql:/bin/sh
You already have a user "mysql", so I will use it.
************************************************************************

Remember to run mysql_upgrade (with the optional --datadir= flag)
the first time you start the MySQL server after an upgrade from an
earlier version.

************************************************************************
install-info --quiet /usr/local/info/mysql.info /usr/local/info/dir
===> Installing rc.d startup script(s)
===> Compressing manual pages for mysql-server-5.1.20
===> Registering installation for mysql-server-5.1.20
===> SECURITY REPORT:
This port has installed the following files which may act as network
servers and may therefore pose a remote security risk to the system.
/usr/local/libexec/mysqld

This port has installed the following startup scripts which may cause
these network services to be started at boot time.
/usr/local/etc/rc.d/mysql-server.sh

If there are vulnerabilities in these programs there may be a security
risk to the system. FreeBSD makes no guarantee about the security of
ports included in the Ports Collection. Please type 'make deinstall'
to deinstall the port if this is a concern.

For more information, and contact details about the security
status of this software, see the following webpage:
http://www.mysql.com/
===> Cleaning for mysql-client-5.1.20
===> Cleaning for mysql-server-5.1.20
www# mysql
mysql: Command not found.
www# cd /usr/local/mysql/bin
/usr/local/mysql/bin: No such file or directory.
www#