Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
0b8ef13d
Commit
0b8ef13d
authored
Nov 09, 2009
by
tbrehm
Browse files
Added missing SELECT permission to table monitor_data on master server in master / slave setups.
parent
c7bc69e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/lib/installer_base.lib.php
View file @
0b8ef13d
...
...
@@ -324,7 +324,7 @@ class installer_base {
$this
->
error
(
'Unable to create database user in master database: '
.
$conf
[
'mysql'
][
'master_ispconfig_user'
]
.
' Error: '
.
$this
->
dbmaster
->
errorMessage
);
}
$query
=
"GRANT INSERT , DELETE ON "
.
$conf
[
'mysql'
][
'master_database'
]
.
".`monitor_data` "
$query
=
"GRANT
SELECT,
INSERT , DELETE ON "
.
$conf
[
'mysql'
][
'master_database'
]
.
".`monitor_data` "
.
"TO '"
.
$conf
[
'mysql'
][
'master_ispconfig_user'
]
.
"'@'"
.
$src_host
.
"' "
.
"IDENTIFIED BY '"
.
$conf
[
'mysql'
][
'master_ispconfig_password'
]
.
"';"
;
if
(
!
$this
->
dbmaster
->
query
(
$query
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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