LoginSignup
0
0

More than 5 years have passed since last update.

MySQLサーバの文字コードをコマンドで変える

Last updated at Posted at 2018-07-25

MySQLサーバの文字コード情報を取得

show variables like "chara%";

データベースの文字コード変更

utf8mb4に変更

ALTER DATABASE データベース名
CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;

いろいろ

utf8mb4に変更

set character_set_client = utf8mb4;
set character_set_connection = utf8mb4;
set character_set_database = utf8mb4;
set character_set_results = utf8mb4;
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