Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Massimiliano
ISPConfig 3
Commits
7de1b7b5
Commit
7de1b7b5
authored
May 21, 2015
by
Marius Cramer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed MySQL port separation
parent
8d3466b0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
install/install.php
install/install.php
+2
-2
install/update.php
install/update.php
+1
-1
interface/lib/classes/db_mysql.inc.php
interface/lib/classes/db_mysql.inc.php
+2
-2
server/lib/classes/db_mysql.inc.php
server/lib/classes/db_mysql.inc.php
+2
-2
No files found.
install/install.php
View file @
7de1b7b5
...
...
@@ -203,7 +203,7 @@ do {
}
//* Initialize the MySQL server connection
if
(
@
mysql_connect
(
$tmp_mysql_server_host
,
$tmp_mysql_server_admin_user
,
$tmp_mysql_server_admin_password
,
(
int
)
$tmp_mysql_server_port
))
{
if
(
@
mysql_connect
(
$tmp_mysql_server_host
.
':'
.
(
int
)
$tmp_mysql_server_port
,
$tmp_mysql_server_admin_user
,
$tmp_mysql_server_admin_password
))
{
$conf
[
'mysql'
][
'host'
]
=
$tmp_mysql_server_host
;
$conf
[
'mysql'
][
'port'
]
=
$tmp_mysql_server_port
;
$conf
[
'mysql'
][
'admin_user'
]
=
$tmp_mysql_server_admin_user
;
...
...
@@ -543,7 +543,7 @@ if($install_mode == 'standard') {
$tmp_mysql_server_database
=
$inst
->
free_query
(
'MySQL master server database name'
,
$conf
[
'mysql'
][
'master_database'
],
'mysql_master_database'
);
//* Initialize the MySQL server connection
if
(
@
mysql_connect
(
$tmp_mysql_server_host
,
$tmp_mysql_server_admin_user
,
$tmp_mysql_server_admin_password
,
(
int
)
$tmp_mysql_server_port
))
{
if
(
@
mysql_connect
(
$tmp_mysql_server_host
.
':'
.
(
int
)
$tmp_mysql_server_port
,
$tmp_mysql_server_admin_user
,
$tmp_mysql_server_admin_password
))
{
$conf
[
'mysql'
][
'master_host'
]
=
$tmp_mysql_server_host
;
$conf
[
'mysql'
][
'master_port'
]
=
$tmp_mysql_server_port
;
$conf
[
'mysql'
][
'master_admin_user'
]
=
$tmp_mysql_server_admin_user
;
...
...
install/update.php
View file @
7de1b7b5
...
...
@@ -253,7 +253,7 @@ if($conf['mysql']['master_slave_setup'] == 'y') {
$tmp_mysql_server_database
=
$inst
->
free_query
(
'MySQL master server database name'
,
$conf
[
'mysql'
][
'master_database'
],
'mysql_master_database'
);
//* Initialize the MySQL server connection
if
(
@
mysql_connect
(
$tmp_mysql_server_host
,
$tmp_mysql_server_admin_user
,
$tmp_mysql_server_admin_password
,
(
int
)
$tmp_mysql_server_port
))
{
if
(
@
mysql_connect
(
$tmp_mysql_server_host
.
':'
.
(
int
)
$tmp_mysql_server_port
,
$tmp_mysql_server_admin_user
,
$tmp_mysql_server_admin_password
))
{
$conf
[
'mysql'
][
'master_host'
]
=
$tmp_mysql_server_host
;
$conf
[
'mysql'
][
'master_port'
]
=
$tmp_mysql_server_port
;
$conf
[
'mysql'
][
'master_admin_user'
]
=
$tmp_mysql_server_admin_user
;
...
...
interface/lib/classes/db_mysql.inc.php
View file @
7de1b7b5
...
...
@@ -76,13 +76,13 @@ class db extends mysqli
$this
->
dbNewLink
=
$conf
[
$prefix
.
'db_new_link'
];
$this
->
dbClientFlags
=
$conf
[
$prefix
.
'db_client_flags'
];
$this
->
_iConnId
=
mysqli_connect
(
$this
->
dbHost
,
$this
->
dbUser
,
$this
->
dbPass
,
(
int
)
$this
->
dbPort
);
$this
->
_iConnId
=
mysqli_connect
(
$this
->
dbHost
,
$this
->
dbUser
,
$this
->
dbPass
,
''
,
(
int
)
$this
->
dbPort
);
$try
=
0
;
while
((
!
is_object
(
$this
->
_iConnId
)
||
mysqli_connect_error
())
&&
$try
<
5
)
{
if
(
$try
>
0
)
sleep
(
1
);
$try
++
;
$this
->
_iConnId
=
mysqli_connect
(
$this
->
dbHost
,
$this
->
dbUser
,
$this
->
dbPass
,
(
int
)
$this
->
dbPort
);
$this
->
_iConnId
=
mysqli_connect
(
$this
->
dbHost
,
$this
->
dbUser
,
$this
->
dbPass
,
''
,
(
int
)
$this
->
dbPort
);
}
if
(
!
is_object
(
$this
->
_iConnId
)
||
mysqli_connect_error
())
{
...
...
server/lib/classes/db_mysql.inc.php
View file @
7de1b7b5
...
...
@@ -76,13 +76,13 @@ class db extends mysqli
$this
->
dbNewLink
=
$conf
[
'db_new_link'
];
$this
->
dbClientFlags
=
$conf
[
'db_client_flags'
];
$this
->
_iConnId
=
mysqli_connect
(
$this
->
dbHost
,
$this
->
dbUser
,
$this
->
dbPass
,
(
int
)
$this
->
dbPort
);
$this
->
_iConnId
=
mysqli_connect
(
$this
->
dbHost
,
$this
->
dbUser
,
$this
->
dbPass
,
''
,
(
int
)
$this
->
dbPort
);
$try
=
0
;
while
((
!
is_object
(
$this
->
_iConnId
)
||
mysqli_connect_error
())
&&
$try
<
5
)
{
if
(
$try
>
0
)
sleep
(
1
);
$try
++
;
$this
->
_iConnId
=
mysqli_connect
(
$this
->
dbHost
,
$this
->
dbUser
,
$this
->
dbPass
,
(
int
)
$this
->
dbPort
);
$this
->
_iConnId
=
mysqli_connect
(
$this
->
dbHost
,
$this
->
dbUser
,
$this
->
dbPass
,
''
,
(
int
)
$this
->
dbPort
);
}
if
(
!
is_object
(
$this
->
_iConnId
)
||
mysqli_connect_error
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment