Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-mysqlbackend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-mysqlbackend
Commits
5ae28a52
Verified
Commit
5ae28a52
authored
2 years ago
by
Daniel Hornung
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Added documentation and FIXME for required DB permissions.
For
#28
parent
26292eb6
No related branches found
No related tags found
1 merge request
!17
Release 6.0
Pipeline
#26386
canceled
2 years ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README_SETUP.md
+5
-0
5 additions, 0 deletions
README_SETUP.md
utils/make_db
+3
-0
3 additions, 0 deletions
utils/make_db
with
8 additions
and
0 deletions
README_SETUP.md
+
5
−
0
View file @
5ae28a52
...
@@ -24,6 +24,11 @@
...
@@ -24,6 +24,11 @@
*
Run
`make install`
. If a there is a database with the name you have choosen
*
Run
`make install`
. If a there is a database with the name you have choosen
during the configuration, you need to reconfigure or delete the database
during the configuration, you need to reconfigure or delete the database
first.
first.
*
*Required database privileges:*
*
If the user does not exist yet, you need the
[
appropriate global privileges
](
https://mariadb.com/kb/en/grant/#global-privileges
)
, for example
`CREATE USER`
and the privileges to grant that user all global privileges. The required
privileges may be reduced in the future.
*
For normal usage,
[
database privileges
](
https://mariadb.com/kb/en/grant/#database-privileges
)
are required.
## Upgrade the SQL database
## Upgrade the SQL database
...
...
This diff is collapsed.
Click to expand it.
utils/make_db
+
3
−
0
View file @
5ae28a52
...
@@ -174,6 +174,9 @@ function grant() {
...
@@ -174,6 +174,9 @@ function grant() {
for
host
in
${
DATABASE_USER_HOST_LIST
//,/
}
;
do
for
host
in
${
DATABASE_USER_HOST_LIST
//,/
}
;
do
echo
"Granting admin privileges to '
$DATABASE_USER
'@'
$host
'"
echo
"Granting admin privileges to '
$DATABASE_USER
'@'
$host
'"
# FIXME Are all these permissions necessary? See
# https://gitlab.indiscale.com/caosdb/src/caosdb-mysqlbackend/-/issues/28 "Default
# installation target does not work for existing databases"
$MYSQL_CMD
$(
get_mysql_args_nodb
)
<<
EOF
$MYSQL_CMD
$(
get_mysql_args_nodb
)
<<
EOF
CREATE USER IF NOT EXISTS
CREATE USER IF NOT EXISTS
'
$DATABASE_USER
'@'
$host
' identified by '
$DATABASE_USER_PW
';
'
$DATABASE_USER
'@'
$host
' identified by '
$DATABASE_USER_PW
';
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment