* [ ] 第三方从Thinkphp分离出来的`Mysql` * 通过`index/think`访问测试 * [Think-orm文档](https://www.kancloud.cn/manual/think-orm/1257999) ``` <?php use think\facade\Db; class index{ public function think() { Db::setConfig([ 'default' => 'mysql', // 默认数据连接标识 'connections' => [ 'mysql' => [ 'type' => 'mysql', //数据库类型 'hostname' => '127.0.0.1',//Mysql IP 'username' => 'root', //Mysql用户名 'password' => 'root',//Mysql密码 'database' => 'zqphpmysql', //数据库名字 'charset' => 'utf8' //编码 ] ] ]); $list = Db::table('user')->select(); Frame::dump($list); } } ```