3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Cloud9のMySQLで日本語を使う時のポイント

Last updated at Posted at 2016-06-28

Cloud9のMySQLで日本語を使うときのポイントをまとめておく。

(1) MySQLの設定

以下のサイトを参考にさせていただきました。
*「Cloud9でMySQLの文字化けを治す

my.cnfをviで編集。(my.cnfは/etc/mysqlにある。)

(以下の行をそれぞれのセクションに追加)

[mysqld]
character-set-server=utf8
[client]  
default-character-set=utf8

(2) 「???」と表示されてしまう場合の対処

データベース作成時に文字コードを指定。

CREATE DATABASE sample DEFAULT CHARACTER SET utf8;

以上。

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?