Comments - Installing MariaDB with yum/dnf

11 years, 3 months ago Kevin Quinn

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
fi

Observe the following:

root@server [~]# /usr/sbin/mysqld --verbose --help 2>/dev/null|sed -ne \
's/^\(basedir\|datadir\)[[:space:]]*\(.*\)$/\2/p'
root@server [~]# 

Notice how it's empty. That meanst that:

mysql_datadir=/

And thus it runs: chown -R mysql:mysql /

Just wanted to clarify. Again, let me know if you need more information from me.

Archived  
11 years, 3 months ago Elena Stepanova

Yes, please submit a bug report at MariaDB JIRA. Thanks!

 
11 years, 2 months ago Kevin Quinn

done!

(sorry about my inability to use code tags properly in JIRA ;)

 
11 years, 3 months ago Kevin Quinn

sorry the forums seem to interpret some of the special characters above...

 
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.