Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cloud-computing-msc-ai-examples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian Rieger
cloud-computing-msc-ai-examples
Commits
f8a675fb
Commit
f8a675fb
authored
1 year ago
by
Sebastian Rieger
Browse files
Options
Downloads
Patches
Plain Diff
changed from mysql to mariadb to fix privilege probs
parent
05d363ca
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
faafo/contrib/install.sh
+5
-5
5 additions, 5 deletions
faafo/contrib/install.sh
with
5 additions
and
5 deletions
faafo/contrib/install.sh
+
5
−
5
View file @
f8a675fb
...
...
@@ -84,11 +84,11 @@ if [[ -e /etc/os-release ]]; then
if
[[
$INSTALL_DATABASE
-eq
1
]]
;
then
if
[[
$ID
=
'ubuntu'
||
$ID
=
'debian'
]]
;
then
sudo
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-y
m
ysql
-server python3-mysqldb
sudo
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-y
m
ariadb
-server python3-mysqldb
# HSFD changes for Ubuntu 18.04
sudo sed
-i
-e
"/bind-address/d"
/etc/mysql/mysql.conf.d/mysqld.cnf
#sudo sed -i -e "/bind-address/d" /etc/mysql/my.cnf
sudo
s
ervice mysq
l restart
#
sudo sed -i -e "/bind-address/d" /etc/mysql/mysql.conf.d/mysqld.cnf
#
#sudo sed -i -e "/bind-address/d" /etc/mysql/my.cnf
sudo
s
ystemct
l restart
mariadb
elif
[[
$ID
=
'fedora'
]]
;
then
# fedora currently not tested nor supported
sudo
dnf
install
-y
mariadb-server python3-mysql
...
...
@@ -99,7 +99,7 @@ if [[ -e /etc/os-release ]]; then
echo
"error: distribution
$ID
not supported"
exit
1
fi
sudo
m
ysql
admin password password
sudo
m
ariadb-
admin password password
sudo
mysql
-uroot
-ppassword
mysql
-e
"CREATE DATABASE IF NOT EXISTS faafo; GRANT ALL PRIVILEGES ON faafo.* TO 'faafo'@'%' IDENTIFIED BY 'password';"
URL_DATABASE
=
'mysql://root:password@localhost/faafo'
fi
...
...
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