This commit is contained in:
toogee 2020-01-01 15:03:00 +08:00
parent 95d28c1128
commit 2c33d9e92d
3 changed files with 70 additions and 106 deletions

View File

@ -2,7 +2,7 @@
return [
// 数据库连接配置信息
'connections' => [
'install' => [
'mysql' => [
// 数据库类型
'type' => 'mysql',
// 服务器地址

View File

@ -87,7 +87,7 @@ class Index extends BaseController
return [
// 数据库连接配置信息
'connections' => [
'install' => [
'mysql' => [
// 数据库类型
'type' => 'mysql',
// 服务器地址
@ -117,7 +117,7 @@ php;
fclose($fp);
$db = Db::connect('install');
$db = Db::connect('mysql');
//var_dump($db);
$sql = 'CREATE DATABASE IF NOT EXISTS '.$data['DB_NAME'].' DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci';
//$db->execute($sql);

File diff suppressed because one or more lines are too long