summaryrefslogtreecommitdiff
path: root/0002-add-install-db-command.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-17 11:25:42 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-17 11:25:42 +0000
commit0877d2a1ae5bdc9acc1da72dc5ab1c2e6c8647d4 (patch)
treec60b7361d590a804e7da88673e92ffc7efca51d4 /0002-add-install-db-command.patch
parent0689a6ebd0d5277b68b26bec05d1211aba69e593 (diff)
automatic import of mariadbopeneuler20.03
Diffstat (limited to '0002-add-install-db-command.patch')
-rw-r--r--0002-add-install-db-command.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/0002-add-install-db-command.patch b/0002-add-install-db-command.patch
new file mode 100644
index 0000000..1eef9c1
--- /dev/null
+++ b/0002-add-install-db-command.patch
@@ -0,0 +1,11 @@
+diff -Naur mariadb-10.3.34/support-files/mariadb.service.in mariadb-10.3.34_patched/support-files/mariadb.service.in
+--- mariadb-10.3.34/support-files/mariadb.service.in 2022-02-11 03:31:02.000000000 +0800
++++ mariadb-10.3.34_patched/support-files/mariadb.service.in 2022-03-03 11:45:17.906359320 +0800
+@@ -82,6 +82,7 @@
+
+ # Needed to create system tables etc.
+ # ExecStartPre=@scriptdir@/mysql_install_db -u mysql
++ExecStartPre=@scriptdir@/mysql_install_db --user="mysql" --skip-test-db
+
+ # Start main service
+ # MYSQLD_OPTS here is for users to set in /etc/systemd/system/mariadb.service.d/MY_SPECIAL.conf