mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
9cbcdfa26a
the installation to make sure the privilege tables are being installed even if the DNS configuration is broken, which seems to be quite common (reverse lookups to "hostname" fail). This should resolve the problem many Mac OS users experience ("Fatal error: Can't open privilege tables: Table 'mysql.host' doesn't exist") when they try to start MySQL after installing the PKG.
21 lines
446 B
Bash
21 lines
446 B
Bash
#!/bin/sh
|
|
#
|
|
# postinstall - this script will be executed after the MySQL PKG
|
|
# installation has been performed.
|
|
#
|
|
# This script will install the MySQL privilege tables using the
|
|
# "mysql_install_db" script and will correct the ownerships of these files
|
|
# afterwards.
|
|
#
|
|
|
|
if cd @prefix@ ; then
|
|
if [ ! -f data/mysql/db.frm ] ; then
|
|
./scripts/mysql_install_db -IN-RPM
|
|
fi
|
|
|
|
if [ -d data ] ; then
|
|
chown -R @MYSQLD_USER@ data
|
|
fi
|
|
else
|
|
exit $?
|
|
fi
|