1.如果需要创建数据库,以下sql创建一个指定编码格式的testdb数据库
CREATE DATABASE testdb
CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
2.选择该数据库
use testdb;
3.执行命令
source /opt/test.sql;
1.如果需要创建数据库,以下sql创建一个指定编码格式的testdb数据库
CREATE DATABASE testdb
CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
2.选择该数据库
use testdb;
3.执行命令
source /opt/test.sql;