0
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.

macOSのターミナルでssh接続先(Ubuntu18)のMySQLで日本語を入力すると日本語が消える

Posted at

TerminalでUbuntu18.04のサーバにssh接続して、mysqlを起動してvaluesに日本語を入力すると"mysql> "プロンプト画面で、日本語をタイプすると、未変換状態の時は表示るが、Enterキーで確定すると日本語が消える。文字化けでない。これを解決するのに役立った解決方法は以下のコードを**/etc/mysql/my.cnf**に入力して解決した。

[mysqld]
character-set-server = utf8

[mysqldump]
default-character-set = utf8
0
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
0
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?