CCSWebsite/console/admin/config.php
2025-06-17 01:43:15 +00:00

22 lines
716 B
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// 数据库配置
$host = 'localhost'; // 数据库主机(本地通常为 localhost
$dbname = 'ccsbeta'; // 数据库名(你提供的名称)
$username = 'ccsbeta'; // 数据库用户名(默认通常为 root
$password = 'ccsbeta'; // 数据库密码(你提供的密码)
// 创建数据库连接
$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);
$conn->set_charset("utf8mb4");
?>