From b6af934a3addafdd6edf1a1dfb19c3d98e53c78a Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 24 May 2017 16:50:41 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/database.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/database.php b/application/database.php index f63e0bd69..597199d28 100644 --- a/application/database.php +++ b/application/database.php @@ -16,13 +16,13 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => 'think.ctolog.com', + 'hostname' => '127.0.0.1', // 数据库名 'database' => 'think.admin', // 用户名 'username' => 'think.admin', // 密码 - 'password' => 'think.admin', + 'password' => '', // 端口 'hostport' => '3306', // 连接dsn @@ -30,7 +30,7 @@ return [ // 数据库连接参数 'params' => [], // 数据库编码默认采用utf8 - 'charset' => 'utf8mb4', + 'charset' => 'utf8', // 数据库表前缀 'prefix' => '', // 数据库调试模式