RDS 修改MySQL UTF-8mb4

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

关于RDS mysql修改utf8mb4字符集的问题

  您可以按照下面命令测试下:(不用重启,sqlserver不能修改库)

  修改一列:

  ALTER TABLE table_name CHANGE column_name column_name VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

    修改库:

  ALTER DATABASE database_name CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;

  修改表:

  ALTER TABLE table_name CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

转载于:https://my.oschina.net/maoguangdong/blog/1559746

你可能感兴趣的:(RDS 修改MySQL UTF-8mb4)