更新 console/config.php

This commit is contained in:
dyzzyduq 2025-06-17 11:11:07 +00:00
parent 94a60c52c6
commit 0ac72f2444

View File

@ -1,9 +1,9 @@
<?php
// 数据库配置
$host = 'localhost'; // 数据库主机(本地通常为 localhost
$dbname = 'ccsbeta'; // 数据库名(你提供的名称)
$username = 'ccsbeta'; // 数据库用户名(默认通常为 root
$password = 'ccsbeta'; // 数据库密码(你提供的密码)
$dbname = ''; // 数据库名(你提供的名称)
$username = ''; // 数据库用户名(默认通常为 root
$password = ''; // 数据库密码(你提供的密码)
// 创建数据库连接
$conn = new mysqli($host, $username, $password, $dbname);
@ -12,7 +12,11 @@ $conn = new mysqli($host, $username, $password, $dbname);
if ($conn->connect_error) {
die("数据库连接失败: " . $conn->connect_error);
}
$host = 'localhost';
$dbname = 'easyauth';
$username = 'ccs';
$password = 'ccsdatabase';
$easyauthConn = new mysqli($host, $username, $password, $dbname);
// 设置字符集为 utf8mb4支持中文
$conn->set_charset("utf8mb4");
?>