mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-21 03:12:55 +09:00
설치시 db port가 제대로 설정되지 않는 문제 해결
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3720 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6562b39554
commit
434395cf4b
6 changed files with 12 additions and 1 deletions
|
|
@ -57,6 +57,7 @@
|
|||
function _setDBInfo() {
|
||||
$db_info = Context::getDBInfo();
|
||||
$this->hostname = $db_info->db_hostname;
|
||||
$this->port = $db_info->db_port;
|
||||
$this->userid = $db_info->db_userid;
|
||||
$this->password = $db_info->db_password;
|
||||
$this->database = $db_info->db_database;
|
||||
|
|
@ -71,6 +72,8 @@
|
|||
// db 정보가 없으면 무시
|
||||
if(!$this->hostname || !$this->userid || !$this->password || !$this->database) return;
|
||||
|
||||
if(strpos($this->hostname, ':')===false && $this->port) $this->hostname .= ':'.$this->port;
|
||||
|
||||
// 접속시도
|
||||
$this->fd = @mysql_connect($this->hostname, $this->userid, $this->password);
|
||||
if(mysql_error()) {
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@
|
|||
function _setDBInfo() {
|
||||
$db_info = Context::getDBInfo();
|
||||
$this->hostname = $db_info->db_hostname;
|
||||
$this->port = $db_info->db_port;
|
||||
$this->userid = $db_info->db_userid;
|
||||
$this->password = $db_info->db_password;
|
||||
$this->database = $db_info->db_database;
|
||||
|
|
@ -71,6 +72,8 @@
|
|||
// db 정보가 없으면 무시
|
||||
if(!$this->hostname || !$this->userid || !$this->password || !$this->database) return;
|
||||
|
||||
if(strpos($this->hostname, ':')===false && $this->port) $this->hostname .= ':'.$this->port;
|
||||
|
||||
// 접속시도
|
||||
$this->fd = @mysql_connect($this->hostname, $this->userid, $this->password);
|
||||
if(mysql_error()) {
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@
|
|||
function _setDBInfo() {
|
||||
$db_info = Context::getDBInfo();
|
||||
$this->hostname = $db_info->db_hostname;
|
||||
$this->port = $db_info->db_port;
|
||||
$this->userid = $db_info->db_userid;
|
||||
$this->password = $db_info->db_password;
|
||||
$this->database = $db_info->db_database;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<form>
|
||||
<node target="db_type" required="true" />
|
||||
<node target="db_hostname" required="true" minlength="1" maxlength="250" />
|
||||
<node target="db_port" required="true" minlength="1" maxlength="250" />
|
||||
<node target="db_port" minlength="1" maxlength="250" />
|
||||
<node target="db_userid" required="true" minlength="1" maxlength="250"/>
|
||||
<node target="db_password" required="true" minlength="1" maxlength="250" />
|
||||
<node target="db_database" required="true" minlength="1" maxlength="250" />
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
<form>
|
||||
<node target="db_type" required="true" />
|
||||
<node target="db_hostname" required="true" minlength="1" maxlength="250" />
|
||||
<node target="db_port" minlength="1" maxlength="250" />
|
||||
<node target="db_userid" required="true" minlength="1" maxlength="250"/>
|
||||
<node target="db_password" required="true" minlength="1" maxlength="250" />
|
||||
<node target="db_database" required="true" minlength="1" maxlength="250" />
|
||||
|
|
@ -16,6 +17,7 @@
|
|||
<parameter>
|
||||
<param name="db_type" target="db_type" />
|
||||
<param name="db_hostname" target="db_hostname" />
|
||||
<param name="db_port" target="db_port" />
|
||||
<param name="db_userid" target="db_userid" />
|
||||
<param name="db_password" target="db_password" />
|
||||
<param name="db_database" target="db_database" />
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
<form>
|
||||
<node target="db_type" required="true" />
|
||||
<node target="db_hostname" required="true" minlength="1" maxlength="250" />
|
||||
<node target="db_port" minlength="1" maxlength="250" />
|
||||
<node target="db_userid" required="true" minlength="1" maxlength="250"/>
|
||||
<node target="db_database" required="true" minlength="1" maxlength="250" />
|
||||
<node target="db_table_prefix" required="true" minlength="2" maxlength="20" filter="alpha"/>
|
||||
|
|
@ -15,6 +16,7 @@
|
|||
<parameter>
|
||||
<param name="db_type" target="db_type" />
|
||||
<param name="db_hostname" target="db_hostname" />
|
||||
<param name="db_port" target="db_port" />
|
||||
<param name="db_userid" target="db_userid" />
|
||||
<param name="db_password" target="db_password" />
|
||||
<param name="db_database" target="db_database" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue