Tritonn (MySQL with Senna, MeCab) を CentOS 5.2 にインストール 久々に技術的な話。 自宅サーバ(CentOS 5.2 / i386)の MySQL を Tritonn (MySQL + Senna + Mecab) に差し替えた。 そのときのメモ。 (Tritonn を rpm でインストールした人の記録って検索してもあまり出てこないね。) http://qwik.jp/tritonn/installrpm.html 公式のTritonnインストール方法を参考にして次の6ファイルをダウンロード。 MySQL-client-5.0.45-tritonn.1.0.7.i386.rpm MySQL-server-5.0.45-tritonn.1.0.7.i386.rpm MySQL-shared-5.0.45-tritonn.1.0.7.i386.r
MySQL 5.0.x/CentOS 5を使っている。サーバーの文字コードも、DBもUTF-8で構成しているのに日本語2バイト文字が文字化けするため以下の対策をとった。(環境は混乱をきたさないようすべてUTF-8で統一)いちいち接続の度に「set names utf-8」のSQLを実行しろなんていう非効率的な方法もあるようだが、この方法のほうがミスがなく確実。/etc/my.cnfを修正[mysqld] の欄に以下を記述 ・・・デーモンとして実行した場合の設定default-character = utf8skip-character-set-client-handshake[mysql] ・・・コマンドラインから実行した場合の設定default-character = utf8*赤文字は、設定はクライアント任せという意味ただし、skip-character-set-client-han
CentOS5のMySQLインストールとphpMyAdminの導入 mysqlのインストール # yum -y install mysql-server mysql設定 # vi /etc/my.cnf [mysqld] ↓追加する(MySQLサーバの文字コードをUTF-8に) default-character-set = utf8 ↓最終行に追加(MySQLクライアントの文字コードをUTF-8に) [mysql] default-character-set = utf8 MySQL起動 # /etc/rc.d/init.d/mysqld start (MySQL起動) # chkconfig mysqld on MySQLデータベースの初期設定 MySQLの管理ユーザ(root)のパスワードが初期設定だとパス無しなので、変更する。 # mysql -u root ↓登録済ユーザとパスワ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く