Comments - Installing MariaDB with yum/dnf
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
Just to clarify and add a bit more information:
The post install scriptlet uses the following commands to create an "array" :
mysql_dirs=(`/usr/sbin/mysqld --verbose --help 2>/dev/null|sed -ne \ 's/^\(basedir\|datadir\)[[:space:]]*\(.*\)$/\2/p'`) basedir="${mysql_dirs[0]}" datadir="${mysql_dirs[1]}" # datadir may be relative to a basedir! if expr $datadir : / > /dev/null; then mysql_datadir=$datadir else mysql_datadir=$basedir/$datadir fiObserve the following:
Notice how it's empty. That meanst that:
And thus it runs:
chown -R mysql:mysql /Just wanted to clarify. Again, let me know if you need more information from me.
Yes, please submit a bug report at MariaDB JIRA. Thanks!
done!
(sorry about my inability to use code tags properly in JIRA ;)
sorry the forums seem to interpret some of the special characters above...