diff options
author | unknown <jperkin@production.mysql.com> | 2007-10-04 11:30:30 +0200 |
---|---|---|
committer | unknown <jperkin@production.mysql.com> | 2007-10-04 11:30:30 +0200 |
commit | 549cbcd54731985b0085d542e7b7dd515fbd77ca (patch) | |
tree | f3eff466ec673232c83d172909851908f5362948 /scripts/mysql_install_db.sh | |
parent | 4b4680898f8859fe37a69792f905936a06eef9e9 (diff) | |
download | mariadb-git-549cbcd54731985b0085d542e7b7dd515fbd77ca.tar.gz |
Restore creation of test databases and the anonymous user which
were accidentally removed during a previous rototill of this
code. Fixes bug#27692.
While it can be argued we should strive to provide a 'secure by
default' installation, this happens to be the setup currently
documented in the manual as the default, so defer changes that
improve security out of the box to a co-ordinated effort later
on.
For now, make a note about the test databases and anonymous user
in mysql_install_db and recommend that mysql_secure_installation
be ran for users wishing to remove these defaults.
[..re-commit of previously lost change..]
scripts/mysql_system_tables_data.sql:
Add anonymous accounts.
scripts/mysql_install_db.sh:
Point users at the mysql_secure_installation script.
mysql-test/mysql-test-run.pl:
Add a comment where removing anonymous users.
Diffstat (limited to 'scripts/mysql_install_db.sh')
-rw-r--r-- | scripts/mysql_install_db.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/mysql_install_db.sh b/scripts/mysql_install_db.sh index a66129af1d3..5716d4f51c0 100644 --- a/scripts/mysql_install_db.sh +++ b/scripts/mysql_install_db.sh @@ -371,7 +371,16 @@ then echo "To do so, start the server, then issue the following commands:" echo "$bindir/mysqladmin -u root password 'new-password'" echo "$bindir/mysqladmin -u root -h $hostname password 'new-password'" + echo + echo "Alternatively you can run:" + echo "$bindir/mysql_secure_installation" + 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." + echo echo "See the manual for more instructions." + echo if test "$in_rpm" -eq 0 then |