Lines 52-63
command_args="-c -f %%PREFIX%%/bin/mysqld_safe --defaults-extra-file=${mysql_opt
Link Here
|
52 |
procname="%%PREFIX%%/libexec/mysqld" |
52 |
procname="%%PREFIX%%/libexec/mysqld" |
53 |
start_precmd="${name}_prestart" |
53 |
start_precmd="${name}_prestart" |
54 |
start_postcmd="${name}_poststart" |
54 |
start_postcmd="${name}_poststart" |
55 |
mysql_install_db="%%PREFIX%%/bin/mysql_install_db" |
55 |
mysql_install_db="${procname}" |
56 |
mysql_install_db_args="--defaults-extra-file=${mysql_optfile} --basedir=%%PREFIX%% --datadir=${mysql_dbdir} --mysqld-file=${procname} --user=${mysql_user}" |
56 |
# NOTE: --initialize MUST be at the end or other options will be |
|
|
57 |
# "unknown variables" and initialization fails. |
58 |
# This is why it's set hardcoded in mysql_create_auth_tables rather then the |
59 |
# options variable here. |
60 |
mysql_install_db_args="--defaults-extra-file=${mysql_optfile} --basedir=%%PREFIX%% --datadir=${mysql_dbdir} --user=${mysql_user}" |
57 |
|
61 |
|
58 |
mysql_create_auth_tables() |
62 |
mysql_create_auth_tables() |
59 |
{ |
63 |
{ |
60 |
eval $mysql_install_db $mysql_install_db_args >/dev/null 2>/dev/null |
64 |
$mysql_install_db $mysql_install_db_args --initialize 2>&1 | \ |
|
|
65 |
/usr/bin/sed -ne '/A temporary password is generated/ s/^.*Note] //p' |
61 |
} |
66 |
} |
62 |
|
67 |
|
63 |
mysql_prestart() |
68 |
mysql_prestart() |