-
查看当前数据库编码
use test_data; show variables like 'character_set_database';
-
修改当前数据库编码
alter database test_data character set utf8;
-
在创建数据库时,指定编码
create database if not exists test_data character set utf8;
MySQL查看与修改当前数据库的编码
最新推荐文章于 2023-03-15 17:58:55 发布