23
23
# Create a MySQL user and group. Do not report any problems if it already
25
25
groupadd -r %{mysqld_group} 2> /dev/null || true
27
27
# The user may already exist, make sure it has the proper group nevertheless (BUG#12823)
30
30
# Change permissions so that the user that will run the MySQL daemon
31
31
# owns all database files.
32
32
chown -R %{mysqld_user}:%{mysqld_group} $datadir
36
36
mkdir -p $datadir/{mysql,test}