Update to MySQL 5.1.35. Fix SELinux context when recreating
/var/lib/mysql/.
This commit is contained in:
parent
d0bf1dc86d
commit
c9d92c2197
@ -1 +1 @@
|
||||
mysql-5.1.34.tar.gz
|
||||
mysql-5.1.35.tar.gz
|
||||
|
@ -7,11 +7,11 @@ http://bugs.mysql.com/bug.php?id=42144
|
||||
For the moment, just disable this test.
|
||||
|
||||
|
||||
diff -Naur mysql-5.1.34.orig/mysql-test/t/disabled.def mysql-5.1.34/mysql-test/t/disabled.def
|
||||
--- mysql-5.1.34.orig/mysql-test/t/disabled.def 2009-03-31 11:26:07.000000000 -0400
|
||||
+++ mysql-5.1.34/mysql-test/t/disabled.def 2009-05-15 20:02:24.000000000 -0400
|
||||
@@ -13,3 +13,5 @@
|
||||
innodb_bug39438 : BUG#42383 2009-01-28 lsoares "This fails in embedded and on windows. Note that this test is not run on windows and on embedded in PB for main trees currently"
|
||||
diff -Naur mysql-5.1.35.orig/mysql-test/t/disabled.def mysql-5.1.35/mysql-test/t/disabled.def
|
||||
--- mysql-5.1.35.orig/mysql-test/t/disabled.def 2009-05-14 08:22:26.000000000 -0400
|
||||
+++ mysql-5.1.35/mysql-test/t/disabled.def 2009-06-06 18:58:28.000000000 -0400
|
||||
@@ -15,3 +15,5 @@
|
||||
|
||||
#concurrent_innodb_safelog: disabled for embedded server due to bug#43733 Select on processlist let the embedded server crash (concurrent_innodb_safelog).
|
||||
#concurrent_innodb_unsafelog: disabled for embedded server due to bug#43733.
|
||||
+#
|
||||
|
@ -46,6 +46,15 @@ start(){
|
||||
chmod 0640 "$errlogfile"
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
|
||||
if [ ! -d "$datadir/mysql" ] ; then
|
||||
# First, make sure $datadir is there with correct permissions
|
||||
if [ ! -e "$datadir" -a ! -h "$datadir" ]
|
||||
then
|
||||
mkdir -p "$datadir" || exit 1
|
||||
fi
|
||||
chown mysql:mysql "$datadir"
|
||||
chmod 0755 "$datadir"
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
|
||||
# Now create the database
|
||||
action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
|
||||
ret=$?
|
||||
chown -R mysql:mysql "$datadir"
|
||||
|
@ -1,5 +1,5 @@
|
||||
Name: mysql
|
||||
Version: 5.1.34
|
||||
Version: 5.1.35
|
||||
Release: 1%{?dist}
|
||||
Summary: MySQL client programs and shared libraries
|
||||
Group: Applications/Databases
|
||||
@ -639,6 +639,12 @@ fi
|
||||
%{_mandir}/man1/mysql_client_test.1*
|
||||
|
||||
%changelog
|
||||
* Sat Jun 6 2009 Tom Lane <tgl@redhat.com> 5.1.35-1
|
||||
- Update to MySQL 5.1.35, for various fixes described at
|
||||
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-35.html
|
||||
- Ensure that /var/lib/mysql is created with the right SELinux context
|
||||
Resolves: #502966
|
||||
|
||||
* Fri May 15 2009 Tom Lane <tgl@redhat.com> 5.1.34-1
|
||||
- Update to MySQL 5.1.34, for various fixes described at
|
||||
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-34.html
|
||||
|
Loading…
Reference in New Issue
Block a user