企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
运行环境配置 ~~~ PHPStudy 域名管理: 目录:F:\PHP\WWW\ThinkPHP_5.0_TEST\public 域名:p16.net 端口:8000 ~~~ http://p16.net:8000/index.php * * * * * 配置数据库 \application\database.php ~~~ <?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved. // +---------------------------------------------------------------------- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) // +---------------------------------------------------------------------- // | Author: liu21st <liu21st@gmail.com> // +---------------------------------------------------------------------- return [ // 数据库类型 'type' => 'mysql', // 服务器地址 //'hostname' => '127.0.0.1', 'hostname' => 'bdm242626157.my3w.com', // 数据库名 'database' => 'bdm242626157_db', // 用户名 //'username' => 'root', 'username' => 'bdm242626157', // 密码 'password' => 'GfCPwNMl99bu', // 数据库编码默认采用utf8 'charset' => 'utf8', // 数据库表前缀 'prefix' => 'tp5_', ~~~ 开启调试模式 \application\config.php ~~~ <?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved. // +---------------------------------------------------------------------- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) // +---------------------------------------------------------------------- // | Author: liu21st <liu21st@gmail.com> // +---------------------------------------------------------------------- return [ // +---------------------------------------------------------------------- // | 应用设置 // +---------------------------------------------------------------------- // 应用命名空间 'app_namespace' => 'app', // 应用调试模式 'app_debug' => true, // 应用Trace 'app_trace' => true, ~~~