Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
cded107a
Commit
cded107a
authored
Jul 07, 2011
by
Joerg Bruehe
Browse files
Options
Browse Files
Download
Plain Diff
Upmerge the 45415 fix from 5.1 to 5.5
parents
db6797ca
622fb276
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+14
-3
No files found.
support-files/mysql.spec.sh
View file @
cded107a
...
@@ -721,13 +721,12 @@ else
...
@@ -721,13 +721,12 @@ else
fi
fi
# echo "Analyzed: SERVER_TO_START=$SERVER_TO_START"
# echo "Analyzed: SERVER_TO_START=$SERVER_TO_START"
if
[
!
-d
$mysql_datadir
/mysql
]
;
then
if
[
!
-d
$mysql_datadir
/mysql
]
;
then
mkdir
$mysql_datadir
/mysql
;
mkdir
$mysql_datadir
/mysql
$mysql_datadir
/test
echo
"MySQL RPM installation of version
$NEW_VERSION
"
>>
$STATUS_FILE
echo
"MySQL RPM installation of version
$NEW_VERSION
"
>>
$STATUS_FILE
else
else
# If the directory exists, we may assume it is an upgrade.
# If the directory exists, we may assume it is an upgrade.
echo
"MySQL RPM upgrade to version
$NEW_VERSION
"
>>
$STATUS_FILE
echo
"MySQL RPM upgrade to version
$NEW_VERSION
"
>>
$STATUS_FILE
fi
fi
if
[
!
-d
$mysql_datadir
/test
]
;
then
mkdir
$mysql_datadir
/test
;
fi
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# Make MySQL start/shutdown automatically when the machine does it.
# Make MySQL start/shutdown automatically when the machine does it.
...
@@ -762,7 +761,12 @@ chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
...
@@ -762,7 +761,12 @@ chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# Initiate databases if needed
# Initiate databases if needed
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
%
{
_bindir
}
/mysql_install_db
--rpm
--user
=
%
{
mysqld_user
}
if
!
grep
'^MySQL RPM upgrade'
$STATUS_FILE
>
/dev/null 2>&1
;
then
# Fix bug#45415: no "mysql_install_db" on an upgrade
# Do this as a negative to err towards more "install" runs
# rather than to miss one.
%
{
_bindir
}
/mysql_install_db
--rpm
--user
=
%
{
mysqld_user
}
fi
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# Upgrade databases if needed would go here - but it cannot be automated yet
# Upgrade databases if needed would go here - but it cannot be automated yet
...
@@ -1126,6 +1130,13 @@ echo "=====" >> $STATUS_HISTORY
...
@@ -1126,6 +1130,13 @@ echo "=====" >> $STATUS_HISTORY
# merging BK trees)
# merging BK trees)
##############################################################################
##############################################################################
%changelog
%changelog
*
Thu Jul 07 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
- Fix bug#45415:
"rpm upgrade recreates test database"
Let the creation of the
"test"
database happen only during a new installation,
not
in
an RPM upgrade.
This affects both the
"mkdir"
and the call of
"mysql_install_db"
.
*
Thu Feb 09 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
*
Thu Feb 09 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
- Fix bug#56581: If an installation deviates from the default file locations
- Fix bug#56581: If an installation deviates from the default file locations
...
...
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