LoginSignup
0
0

More than 5 years have passed since last update.

MySQL 文字コード

Last updated at Posted at 2015-11-08

テーブルにレコードを登録した際に、文字化けをしてしまったので、対処法です。

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

確認

mysql> show create database db_name;

変更

mysql> alter database db_name character set utf8;

テーブルの文字コード

確認

mysql> show table status from db_name like 'table_name';

変更

mysql> alter table table_name convert to 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