gooブログはじめました!

写真付きで日記や趣味を書くならgooブログ

mysqlのインストール

2013-10-12 11:03:00 | ノンジャンル
FreeBSDの環境整備とDBの勉強をかねて,mysqlを入れることにした。
Webをみたけど、pkgコマンドでのインストール方法がない。

# pkg install mysql
# pkg install my-sql-server

ぐらいじゃあはいらない。


# pkg install mysql56-server
Updating repository catalogue
pkg: No packages matching 'mysql56-server' has been found in the repositories
# pkg search mysql |grep 6
courier-authlib-mysql-0.65.0
   -
   -
   -
   -
  
# pkg install mysql-server-5.6.12
Updating repository catalogue
The following 2 packages will be installed:

    Installing mysql-client: 5.6.12
    Installing mysql-server: 5.6.12

The installation will require 135 MB more space

0 B to be downloaded

Proceed with installing packages [y/N]: y
Checking integrity... done
[1/2] Installing mysql-client-5.6.12... done
[2/2] Installing mysql-server-5.6.12...===> Creating users and/or groups.
Creating group 'mysql' with gid '88'.
Creating user 'mysql' with uid '88'.
 done
************************************************************************

Remember to run mysql_upgrade the first time you start the MySQL server
after an upgrade from an earlier version.

************************************************************************
# grep msql /etc/passwd
# grep mysql /etc/group
mysql:*:88:
# vipw



最新の画像もっと見る

コメントを投稿