Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wtlinux_server_setup
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
w4t
wtlinux_server_setup
Commits
40a7b50d
Commit
40a7b50d
authored
Mar 17, 2025
by
w4t
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wtserver 0.82
parent
ff110f6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
install_mysql.sh
distros/debian12/install_mysql.sh
+6
-5
No files found.
distros/debian12/install_mysql.sh
View file @
40a7b50d
...
...
@@ -148,10 +148,10 @@ default-authentication-plugin=mysql_native_password
elif
[
$CFG_SQLSERVER
==
"MariaDB"
]
;
then
echo
-n
-e
"
$IDENTATION_LVL_0
${
BWhite
}
Installing MariaDB...
${
NC
}
\n
"
echo
-n
-e
"
$IDENTATION_LVL_1
Setting debconf selections... "
echo
"maria-server-11.8.1 mysql-server/root_password password '
$CFG_MYSQL_ROOT_PWD
'"
| debconf-set-selections
echo
"maria-server-11.8.1 mysql-server/root_password_again password '
$CFG_MYSQL_ROOT_PWD
'"
| debconf-set-selections
echo
-e
"[
${
green
}
DONE
${
NC
}
]"
#
echo -n -e "$IDENTATION_LVL_1 Setting debconf selections... "
#
echo "maria-server-11.8.1 mysql-server/root_password password '$CFG_MYSQL_ROOT_PWD'" | debconf-set-selections
#
echo "maria-server-11.8.1 mysql-server/root_password_again password '$CFG_MYSQL_ROOT_PWD'" | debconf-set-selections
#
echo -e "[${green}DONE${NC}]"
echo
-n
-e
"
$IDENTATION_LVL_1
Installing MariaDB Server & Client... "
apt_install software-properties-common dirmngr apt-transport-https
...
...
@@ -160,7 +160,8 @@ default-authentication-plugin=mysql_native_password
apt_update
apt_install mariadb-client mariadb-server
echo
-e
"[
${
green
}
DONE
${
NC
}
]"
mariadb
-uroot
-e
"ALTER USER 'root'@'localhost' IDENTIFIED VIA mysql_native_password USING PASSWORD('
$CFG_MYSQL_ROOT_PWD
'); FLUSH PRIVILEGES;"
#echo -n -e "$IDENTATION_LVL_1 Set password authentication for the root user... "
#echo "ALTER USER 'root'@'localhost' IDENTIFIED BY '$CFG_MYSQL_ROOT_PWD';" > $PROGRAMS_INSTALL_SQLS/mariadbroot.sql
#echo "FLUSH PRIVILEGES;" >> $PROGRAMS_INSTALL_SQLS/mariadbroot.sql
...
...
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