-- 修复字符编码问题
-- 删除现有数据库（如果存在）
-- DROP DATABASE IF EXISTS `school_news`;

-- 创建数据库，使用utf8mb4字符集
CREATE DATABASE IF NOT EXISTS `school_news` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

-- 使用数据库
USE `school_news`;

-- 设置会话字符集
SET NAMES utf8mb4;
SET CHARACTER SET utf8mb4;
SET character_set_client = utf8mb4;
SET character_set_connection = utf8mb4;
SET character_set_results = utf8mb4;
