FreeBSD Bugzilla – Attachment 174385 Details for
Bug 206612
databases/mysql57-server should remind the user of the autogenerated, random root password
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Show autogenerated password WHEN it is created.
fix-mysql57-server-install_db.patch (text/plain), 1.28 KB, created by
Melvyn Sopacua
on 2016-09-05 11:01:44 UTC
(
hide
)
Description:
Show autogenerated password WHEN it is created.
Filename:
MIME Type:
Creator:
Melvyn Sopacua
Created:
2016-09-05 11:01:44 UTC
Size:
1.28 KB
patch
obsolete
>diff --git a/databases/mysql57-server/files/mysql-server.in b/databases/mysql57-server/files/mysql-server.in >index 03c57e7..94a8a5d 100644 >--- a/databases/mysql57-server/files/mysql-server.in >+++ b/databases/mysql57-server/files/mysql-server.in >@@ -52,12 +52,17 @@ command_args="-c -f %%PREFIX%%/bin/mysqld_safe --defaults-extra-file=${mysql_opt > procname="%%PREFIX%%/libexec/mysqld" > start_precmd="${name}_prestart" > start_postcmd="${name}_poststart" >-mysql_install_db="%%PREFIX%%/bin/mysql_install_db" >-mysql_install_db_args="--defaults-extra-file=${mysql_optfile} --basedir=%%PREFIX%% --datadir=${mysql_dbdir} --mysqld-file=${procname} --user=${mysql_user}" >+mysql_install_db="${procname}" >+# NOTE: --initialize MUST be at the end or other options will be >+# "unknown variables" and initialization fails. >+# This is why it's set hardcoded in mysql_create_auth_tables rather then the >+# options variable here. >+mysql_install_db_args="--defaults-extra-file=${mysql_optfile} --basedir=%%PREFIX%% --datadir=${mysql_dbdir} --user=${mysql_user}" > > mysql_create_auth_tables() > { >- eval $mysql_install_db $mysql_install_db_args >/dev/null 2>/dev/null >+ $mysql_install_db $mysql_install_db_args --initialize 2>&1 | \ >+ /usr/bin/sed -ne '/A temporary password is generated/ s/^.*Note] //p' > } > > mysql_prestart()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 206612
: 174385