Commit 635c5e32 authored by Sergei Golubchik's avatar Sergei Golubchik

mysql_install_db: clarify the after-install message

don't tell users to set the root password if they're using unix_socket
parent df704b5a
...@@ -525,19 +525,24 @@ then ...@@ -525,19 +525,24 @@ then
s_echo "To start mysqld at boot time you have to copy" s_echo "To start mysqld at boot time you have to copy"
s_echo "support-files/mysql.server to the right place for your system" s_echo "support-files/mysql.server to the right place for your system"
echo if test "$auth_root_authentication_method" = normal
echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !" then
echo "To do so, start the server, then issue the following commands:" echo
echo echo
echo "'$bindir/mysqladmin' -u root password 'new-password'" echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !"
echo "'$bindir/mysqladmin' -u root -h $hostname password 'new-password'" echo "To do so, start the server, then issue the following commands:"
echo echo
echo "Alternatively you can run:" echo "'$bindir/mysqladmin' -u root password 'new-password'"
echo "'$bindir/mysql_secure_installation'" echo "'$bindir/mysqladmin' -u root -h $hostname password 'new-password'"
echo echo
echo "which will also give you the option of removing the test" echo "Alternatively you can run:"
echo "databases and anonymous user created by default. This is" echo "'$bindir/mysql_secure_installation'"
echo "strongly recommended for production servers." echo
echo "which will also give you the option of removing the test"
echo "databases and anonymous user created by default. This is"
echo "strongly recommended for production servers."
fi
echo echo
echo "See the MariaDB Knowledgebase at http://mariadb.com/kb or the" echo "See the MariaDB Knowledgebase at http://mariadb.com/kb or the"
echo "MySQL manual for more instructions." echo "MySQL manual for more instructions."
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment