ユーザ用ツール

サイト用ツール


ubuntu-server-10-04:mysql

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
ubuntu-server-10-04:mysql [2011/05/27 21:18] – [設定] adminubuntu-server-10-04:mysql [2011/05/27 21:28] (現在) – [設定] admin
行 36: 行 36:
 <note>192.168.10.10 は サーバの IP に置き換える。</note> <note>192.168.10.10 は サーバの IP に置き換える。</note>
  
 +文字コードに関する設定を追加。
  
 +<code>
 [client] [client]
- 
 default-character-set=utf8 default-character-set=utf8
  
 [mysqld] [mysqld]
- 
 default-character-set=utf8 default-character-set=utf8
- 
 skip-character-set-client-handshake skip-character-set-client-handshake
 +</code>
  
  
行 54: 行 53:
 $ sudo service mysql restart $ sudo service mysql restart
 </code> </code>
 +
 +
 +初期設定コマンドを使う。
 +
 +<code>
 +$ sudo mysql_secure_installation
 +</code>
 +
 +  * Enter current password for root (enter for none):
 +    * 設定した root のパスワードを入力
 +  * Change the root password? [Y/n]
 +    * 変更しない n
 +  * Remove anonymous users? [Y/n]
 +    * 匿名ユーザを削除する y
 +  * Disallow root login remotely? [Y/n]
 +    *ネットワークからの root アクセスを拒否する y
 +  * Remove test database and access to it? [Y/n]
 +    * テスト用のデータベースとアクセス権を削除する y
 +  * Reload privilege tables now? [Y/n]
 +    * すぐに設定を適用する y
 +
  
  
ubuntu-server-10-04/mysql.1306498735.txt.gz · 最終更新: 2011/05/27 21:18 by admin