/[smeserver]/rpms/e-smith-mysql/sme10/e-smith-mysql-2.6.0.bz9671.RemoveDummyMysqlDatabase.patch
ViewVC logotype

Contents of /rpms/e-smith-mysql/sme10/e-smith-mysql-2.6.0.bz9671.RemoveDummyMysqlDatabase.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Sat Jul 23 06:24:27 2016 UTC (7 years, 10 months ago) by stephdl
Branch: MAIN
CVS Tags: e-smith-mysql-2_6_0-22_el7_sme, e-smith-mysql-2_6_0-20_el7_sme, e-smith-mysql-2_6_0-17_el7_sme, e-smith-mysql-2_6_0-18_el7_sme, e-smith-mysql-2_6_0-19_el7_sme, e-smith-mysql-2_6_0-21_el7_sme, e-smith-mysql-2_6_0-15_el7_sme, e-smith-mysql-2_6_0-16_el7_sme, e-smith-mysql-2_6_0-13_el7_sme, e-smith-mysql-2_6_0-14_el7_sme, e-smith-mysql-2_6_0-12_el7_sme, HEAD
Changes since 1.2: +1 -1 lines
* Sat Jul 23 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-12.sme
- Corrected a typo in e-smith-mysql-2.6.0.bz9671.RemoveDummyMysqlDatabase.patch
- [SME: 9671]

1 diff -Nur e-smith-mysql-2.6.0.bz9671.old/root/etc/e-smith/events/actions/mysql-dump-tables e-smith-mysql-2.6.0.bz9671.new/root/etc/e-smith/events/actions/mysql-dump-tables
2 --- e-smith-mysql-2.6.0.bz9671.old/root/etc/e-smith/events/actions/mysql-dump-tables 2016-02-05 23:29:32.000000000 +0100
3 +++ e-smith-mysql-2.6.0.bz9671.new/root/etc/e-smith/events/actions/mysql-dump-tables 2016-07-16 02:28:30.889035357 +0200
4 @@ -6,7 +6,7 @@
5 echo "mysqld is disabled - no tables dumped" >&2
6 exit 0
7 fi
8 -for db in $(mysql -BNre "show databases;")
9 +for db in $(mysql -BNre "show databases;"|egrep -vi "^information_schema$|^performance_schema$")
10 do
11 mysqldump --ignore-table=mysql.event --single-transaction --add-drop-table -QB "$db" -r /home/e-smith/db/mysql/"$db".dump || exit 1
12 done
13 diff -Nur e-smith-mysql-2.6.0.bz9671.old/root/etc/e-smith/events/actions/mysql-load-tables e-smith-mysql-2.6.0.bz9671.new/root/etc/e-smith/events/actions/mysql-load-tables
14 --- e-smith-mysql-2.6.0.bz9671.old/root/etc/e-smith/events/actions/mysql-load-tables 2016-02-05 23:29:32.000000000 +0100
15 +++ e-smith-mysql-2.6.0.bz9671.new/root/etc/e-smith/events/actions/mysql-load-tables 2016-07-16 02:26:05.376344286 +0200
16 @@ -7,6 +7,7 @@
17 exit 0
18 fi
19 /bin/rm -f /home/e-smith/db/mysql/information_schema.dump
20 +/bin/rm -f /home/e-smith/db/mysql/performance_schema.dump
21 if [ ! -f /var/lib/mysql/mysql/user.frm ]
22 then
23 for db in $(ls /home/e-smith/db/mysql/*.dump 2> /dev/null | grep -v '/mysql.dump')

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed