From 51a25f65084ba587128c9f15b60f464c718e9523 Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 7 Feb 2017 03:33:55 -0500 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0sqlite=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/extra/sqlite.db | Bin 0 -> 2048 bytes application/index/controller/Index.php | 2 +- config/database.php | 8 ++++---- 3 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 application/extra/sqlite.db diff --git a/application/extra/sqlite.db b/application/extra/sqlite.db new file mode 100644 index 0000000000000000000000000000000000000000..5b38af8a883ba27d3e1e5fc33f4eb04e24657746 GIT binary patch literal 2048 zcmWFz^vNtqRY=P(%1ta$FlJz3U}R))P*7lCU|*{ padding: 0; margin: 0; } .think_default_text{ padding: 4px 48px;} a{color:#2E5CD5;cursor: pointer;text-decoration: none} a:hover{text-decoration:underline; } body{ background: #fff; font-family: "Century Gothic","Microsoft yahei"; color: #333;font-size:18px} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.6em; font-size: 42px }

:)

ThinkPHP V5
十年磨一剑 - 为API开发设计的高性能框架

[ V5.0 版本由 七牛云 独家赞助发布 ]
'; + return '

:)

ThinkPHP V5
十年磨一剑 - 为API开发设计的高性能框架

[ V5.0 版本由 七牛云 独家赞助发布 ]
'; } } diff --git a/config/database.php b/config/database.php index 5d3cab15b..69da17407 100644 --- a/config/database.php +++ b/config/database.php @@ -11,13 +11,13 @@ return [ // 数据库类型 - 'type' => 'mysql', + 'type' => 'Sqlite', // 服务器地址 - 'hostname' => '127.0.0.1', + 'hostname' => '', // 数据库名 - 'database' => '', + 'database' => APP_PATH.'extra/sqlite.db', // 用户名 - 'username' => 'root', + 'username' => '', // 密码 'password' => '', // 端口