FreeBSD 2.2.7R MySQL install

FreeBSD 2.2.7R に MySQLを導入
MySQL ( mysql-3.22.15-gamma.tar.gz )

  1. mysql-3.22.15-gamma.tar.gzをコピー

    ここでは、/usr/src にソースを展開する事にします。

    # cp mysql-3.22.15-gamma.tar.gz /usr/src
      

  2. 解凍

    # cd /usr/src
    # tar zxvf mysql-3.22.15-gamma.tar.gz
      

  3. コンパイル

    ここでは 日本語はEUCを用いる事にしています。

    # cd mysql-3.22.15-gamma
    # ./configure --with-charset=ujis  ← EUCを指定
    # make
      

  4. インストール及び起動

    # make install
    # scripts/mysql_install_db
    ...
    To start mysqld at boot time you have to copy support-files/mysql.server
    to the right place for your system
    ...
    ...
    # sh support-files/mysql.server start
      

  5. 動作確認

    # mysql test
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 1 to server version: 3.22.15-gamma
    
    Type 'help' for help.
    
    mysql> exit
    Bye
    #
      

  6. 動作停止

    # sh support-files/mysql.server stop
    Killing mysqld with pid 15724
    #
      
おしまい!
リンクはご自由に!

スパムが多いので頭に"_"追加してます。
_sugasawa@ceres.dti.ne.jp
Copyright (C) SUGASAWA. All rights reserved.