1 |
diff -Nur smeserver-mysql57-2.0.0.old/root/etc/e-smith/templates/opt/rh/rh-mysql57/root/etc/my.cnf/006logfile smeserver-mysql57-2.0.0/root/etc/e-smith/templates/opt/rh/rh-mysql57/root/etc/my.cnf/006logfile |
2 |
--- smeserver-mysql57-2.0.0.old/root/etc/e-smith/templates/opt/rh/rh-mysql57/root/etc/my.cnf/006logfile 2017-03-15 21:14:30.261000000 -0400 |
3 |
+++ smeserver-mysql57-2.0.0/root/etc/e-smith/templates/opt/rh/rh-mysql57/root/etc/my.cnf/006logfile 2017-03-15 21:24:25.165000000 -0400 |
4 |
@@ -1 +1,4 @@ |
5 |
log-error=/var/log/mysql57-mysqld.log |
6 |
+explicit_defaults_for_timestamp = 1 |
7 |
+log_timestamps = SYSTEM |
8 |
+ |
9 |
diff -Nur smeserver-mysql57-2.0.0.old/root/etc/e-smith/templates/opt/rh/rh-mysql57/root/etc/my.cnf/010mysqld-log-error smeserver-mysql57-2.0.0/root/etc/e-smith/templates/opt/rh/rh-mysql57/root/etc/my.cnf/010mysqld-log-error |
10 |
--- smeserver-mysql57-2.0.0.old/root/etc/e-smith/templates/opt/rh/rh-mysql57/root/etc/my.cnf/010mysqld-log-error 2017-03-15 21:14:30.261000000 -0400 |
11 |
+++ smeserver-mysql57-2.0.0/root/etc/e-smith/templates/opt/rh/rh-mysql57/root/etc/my.cnf/010mysqld-log-error 1969-12-31 19:00:00.000000000 -0500 |
12 |
@@ -1 +0,0 @@ |
13 |
-log-error=/var/log/mysql57-mysqld.log |
14 |
diff -Nur smeserver-mysql57-2.0.0.old/root/var/service/mysql57-mysqld/run smeserver-mysql57-2.0.0/root/var/service/mysql57-mysqld/run |
15 |
--- smeserver-mysql57-2.0.0.old/root/var/service/mysql57-mysqld/run 2017-03-15 21:14:30.318000000 -0400 |
16 |
+++ smeserver-mysql57-2.0.0/root/var/service/mysql57-mysqld/run 2017-03-15 21:22:53.721000000 -0400 |
17 |
@@ -22,6 +22,9 @@ |
18 |
|
19 |
if [ ! -f /opt/rh/rh-mysql57/root/var/lib/mysql/mysql/user.frm ] |
20 |
then |
21 |
+ touch /var/log/mysql57-mysqld.log |
22 |
+ chown mysql:mysql /var/log/mysql57-mysqld.log |
23 |
+ chmod 0640 /var/log/mysql57-mysqld.log |
24 |
echo "Initializing MySQL database" |
25 |
/opt/rh/rh-mysql57/root/usr/libexec/mysqld --initialize --datadir="$datadir" --user="mysql" |
26 |
ret=$? |