MySQL on FreeBSD

CONTENTS


Lastmodified 2015-08-19 (水) 12:47:58


MySQL を 5.5.0 以降にアップグレードしてください 2015年8月17日

portupgrade したphpMyAdminにアクセスしたらエラー。MySQLは5.1でした。

ということで、取り敢えず phpMyAdmin-4.0.10.10-all-languages.tar.gz を取ってきて、解凍インストール。

と同時に、5.1から5.5以上にUPするテスト。

# portinstall databases/mysql51-client

# portinstall databases/mysql51-server

Creating group 'mysql' with gid '88'.
Creating user 'mysql' with uid '88'.
pw: user 'mysql' disappeared during update
************************************************************************

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

************************************************************************

===> 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 

      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 mysql51-server-5.1.73_2

/usr/local/etc/my.cnf

コピーして移す

/etc/rc.conf

mysql_enable="YES"
mysql_dbdir="MySQLデータベースディレクトリのフルパス"

書き込む。

MySQL db をコピー

phpMyAdmin をインストール


Total access 2158:本日 1:昨日 0

Counter: 2158, today: 1, yesterday: 0

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS