sql
This commit is contained in:
parent
95d28c1128
commit
2c33d9e92d
@ -2,7 +2,7 @@
|
|||||||
return [
|
return [
|
||||||
// 数据库连接配置信息
|
// 数据库连接配置信息
|
||||||
'connections' => [
|
'connections' => [
|
||||||
'install' => [
|
'mysql' => [
|
||||||
// 数据库类型
|
// 数据库类型
|
||||||
'type' => 'mysql',
|
'type' => 'mysql',
|
||||||
// 服务器地址
|
// 服务器地址
|
||||||
|
@ -87,7 +87,7 @@ class Index extends BaseController
|
|||||||
return [
|
return [
|
||||||
// 数据库连接配置信息
|
// 数据库连接配置信息
|
||||||
'connections' => [
|
'connections' => [
|
||||||
'install' => [
|
'mysql' => [
|
||||||
// 数据库类型
|
// 数据库类型
|
||||||
'type' => 'mysql',
|
'type' => 'mysql',
|
||||||
// 服务器地址
|
// 服务器地址
|
||||||
@ -117,7 +117,7 @@ php;
|
|||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
|
||||||
|
|
||||||
$db = Db::connect('install');
|
$db = Db::connect('mysql');
|
||||||
//var_dump($db);
|
//var_dump($db);
|
||||||
$sql = 'CREATE DATABASE IF NOT EXISTS '.$data['DB_NAME'].' DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci';
|
$sql = 'CREATE DATABASE IF NOT EXISTS '.$data['DB_NAME'].' DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci';
|
||||||
//$db->execute($sql);
|
//$db->execute($sql);
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user