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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-mysqlbackend
Commits
5143b553
Verified
Commit
5143b553
authored
9 months ago
by
Daniel Hornung
Browse files
Options
Downloads
Patches
Plain Diff
DOC: License texts
parent
bfac6bae
No related branches found
No related tags found
2 merge requests
!31
ENH: Update script for outdated dumps.
,
!30
Mariadb 10.11: New reserved keyword
Pipeline
#55856
passed
9 months ago
Stage: test
Stage: deploy
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
Makefile
+4
-5
4 additions, 5 deletions
Makefile
config.defaults
+4
-6
4 additions, 6 deletions
config.defaults
utils/helpers.sh
+9
-3
9 additions, 3 deletions
utils/helpers.sh
utils/load_settings.sh
+5
-3
5 additions, 3 deletions
utils/load_settings.sh
utils/make_db
+3
-5
3 additions, 5 deletions
utils/make_db
with
25 additions
and
22 deletions
Makefile
+
4
−
5
View file @
5143b553
# This file is a part of the Linkahead Project.
#
#
# ** header v3.0
# Copyright (C) 2024 Daniel Hornung <d.hornung@indiscale.com>
# This file is a part of the CaosDB Project.
# Copyright (C) 2024 IndiScale GmbH <info@indiscale.com>
#
# Copyright (C) 2018 Research Group Biomedical Physics,
# Copyright (C) 2018 Research Group Biomedical Physics,
# Max-Planck-Institute for Dynamics and Self-Organization Göttingen
# Max-Planck-Institute for Dynamics and Self-Organization Göttingen
#
#
...
@@ -18,8 +18,7 @@
...
@@ -18,8 +18,7 @@
# You should have received a copy of the GNU Affero General Public License
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
#
# ** end header
#
SHELL
=
/bin/bash
SHELL
=
/bin/bash
INSTALL_SQL_FILE
=
db_5_0.sql
INSTALL_SQL_FILE
=
db_5_0.sql
...
...
This diff is collapsed.
Click to expand it.
config.defaults
+
4
−
6
View file @
5143b553
# This file is a part of the LinkAhead Project.
#
#
# ** header v2.0
# Copyright (C) 2024 Daniel Hornung <d.hornung@indiscale.com>
# This file is a part of the CaosDB Project.
# Copyright (C) 2024 IndiScale GmbH <info@indiscale.com>
#
# Copyright (C) 2018 Research Group Biomedical Physics,
# Copyright (C) 2018 Research Group Biomedical Physics,
# Max-Planck-Institute for Dynamics and Self-Organization Göttingen
# Max-Planck-Institute for Dynamics and Self-Organization Göttingen
#
#
...
@@ -15,11 +15,9 @@
...
@@ -15,11 +15,9 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# GNU General Public License for more details.
#
#
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU
Affero
General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
#
# ** end header
#
# # Commands
# # Commands
# The MySQL client program.
# The MySQL client program.
...
...
This diff is collapsed.
Click to expand it.
utils/helpers.sh
+
9
−
3
View file @
5143b553
# This file is a part of the
CaosDB
Project.
# This file is a part of the
LinkAhead
Project.
#
#
# Copyright (C) 2018 Research Group Biomedical Physics,
# Copyright (C) 2018 Research Group Biomedical Physics,
# Max-Planck-Institute for Dynamics and Self-Organization Göttingen
# Max-Planck-Institute for Dynamics and Self-Organization Göttingen
# Copyright (C) 2019, 2020 Daniel Hornung (d.hornung@indiscale.com)
# Copyright (C) 2019, 2020
, 2024
Daniel Hornung (d.hornung@indiscale.com)
# Copyright (C) 2020 Henrik tom Wörden
# Copyright (C) 2020 Henrik tom Wörden
# Copyright (C) 2020 IndiScale GmbH <info@indiscale.com>
# Copyright (C) 2020
, 2024
IndiScale GmbH <info@indiscale.com>
#
#
# This program is free software: you can redistribute it and/or modify
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# it under the terms of the GNU Affero General Public License as
...
@@ -52,10 +52,16 @@ function mysql_execute_file {
...
@@ -52,10 +52,16 @@ function mysql_execute_file {
fi
fi
}
}
# Return the arguments from `get_db_args_nodb` and additionally the database name as
# `--database=mydatabasename`.
function
get_db_args
{
function
get_db_args
{
echo
"
$(
get_db_args_nodb
)
--database=
$DATABASE_NAME
"
echo
"
$(
get_db_args_nodb
)
--database=
$DATABASE_NAME
"
}
}
# Return arguments for user, password, host, port and additional options in MYSQL_OPTS.
#
# For example, the output may be:
# --user=myuser --password=mypassword --host=example.com --port=1234 --other --option
function
get_db_args_nodb
{
function
get_db_args_nodb
{
if
[
-n
"
$MYSQL_USER
"
]
;
then
if
[
-n
"
$MYSQL_USER
"
]
;
then
mysql_con_arguments
=
"--user=
$MYSQL_USER
"
mysql_con_arguments
=
"--user=
$MYSQL_USER
"
...
...
This diff is collapsed.
Click to expand it.
utils/load_settings.sh
+
5
−
3
View file @
5143b553
# This file is a part of the
CaosDB
Project.
# This file is a part of the
Linkahead
Project.
#
#
# Copyright (C) 2018 Research Group Biomedical Physics,
# Copyright (C) 2018 Research Group Biomedical Physics,
# Max-Planck-Institute for Dynamics and Self-Organization Göttingen
# Max-Planck-Institute for Dynamics and Self-Organization Göttingen
# Copyright (C) 2019, 2020 Daniel Hornung
(
d.hornung@indiscale.com
)
# Copyright (C) 2019, 2020
, 2024
Daniel Hornung
<
d.hornung@indiscale.com
>
# Copyright (C) 2020 Henrik tom Wörden
# Copyright (C) 2020 Henrik tom Wörden
# Copyright (C) 2020 IndiScale GmbH <info@indiscale.com>
# Copyright (C) 2020
, 2024
IndiScale GmbH <info@indiscale.com>
#
#
# This program is free software: you can redistribute it and/or modify
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# it under the terms of the GNU Affero General Public License as
...
@@ -62,10 +62,12 @@ export MYSQL_CMD
...
@@ -62,10 +62,12 @@ export MYSQL_CMD
export
MYSQLDUMP_CMD
export
MYSQLDUMP_CMD
export
MYSQLADMIN_CMD
export
MYSQLADMIN_CMD
export
MYSQL_CONFIG_EDITOR_CMD
export
MYSQL_CONFIG_EDITOR_CMD
export
MYSQL_HOST
export
MYSQL_HOST
export
MYSQL_PORT
export
MYSQL_PORT
export
MYSQL_USER
export
MYSQL_USER
export
MYSQL_OPTS
export
MYSQL_OPTS
export
DATABASE_NAME
export
DATABASE_NAME
export
DATABASE_USER
export
DATABASE_USER
export
DATABASE_USER_PW
export
DATABASE_USER_PW
...
...
This diff is collapsed.
Click to expand it.
utils/make_db
+
3
−
5
View file @
5143b553
#!/bin/bash
#!/bin/bash
# ** header v3.0
# This file is a part of the LinkAhead Project.
# This file is a part of the CaosDB Project.
#
#
# Copyright (C) 2021 Indiscale GmbH <info@indiscale.com>
# Copyright (C) 2021
, 2024
Indiscale GmbH <info@indiscale.com>
# Copyright (C) 2019, 2020, 2021 Daniel Hornung <d.hornung@indiscale.com>
# Copyright (C) 2019, 2020, 2021
, 2024
Daniel Hornung <d.hornung@indiscale.com>
# Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com>
# Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com>
# Copyright (C) 2020 Henrik tom Wörden <h.tomwoerden@indiscale.com>
# Copyright (C) 2020 Henrik tom Wörden <h.tomwoerden@indiscale.com>
# Copyright (C) 2020 IndiScale <info@indiscale.com>
# Copyright (C) 2020 IndiScale <info@indiscale.com>
...
@@ -22,7 +21,6 @@
...
@@ -22,7 +21,6 @@
# You should have received a copy of the GNU Affero General Public License
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
#
# ** end header
# Although some sanity checks are performed, this script still allows lots of SQL injection
# Although some sanity checks are performed, this script still allows lots of SQL injection
# possibilities.
# possibilities.
...
...
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