|
|
|
@ -38,7 +38,7 @@ Class: EVAL
|
|
|
|
|
Group: Database |
|
|
|
|
License: GPL |
|
|
|
|
Version: %{V_opkg} |
|
|
|
|
Release: 20180416 |
|
|
|
|
Release: 20180520 |
|
|
|
|
|
|
|
|
|
# package options |
|
|
|
|
%option with_server yes |
|
|
|
@ -368,24 +368,32 @@ Provides: mysql = %{version}
|
|
|
|
|
( echo "An initial MariaDB DB was created. The owner of the database" |
|
|
|
|
echo "is the DB user 'root'. Its initial password is empty." |
|
|
|
|
echo "After starting MariaDB with..." |
|
|
|
|
echo "" |
|
|
|
|
echo " \$ $RPM_INSTALL_PREFIX/bin/openpkg rc mariadb start" |
|
|
|
|
echo "" |
|
|
|
|
echo "...you should change the password as soon as possible with:" |
|
|
|
|
echo "" |
|
|
|
|
echo " \$ $RPM_INSTALL_PREFIX/bin/mysqladmin \\ " |
|
|
|
|
echo " -u root password '<new-password>'" |
|
|
|
|
echo " --user=root password '<root-password>'" |
|
|
|
|
echo "" |
|
|
|
|
echo "Additionally, because the MariaDB package includes automated" |
|
|
|
|
echo "maintenance procedures that require administrator access to" |
|
|
|
|
echo "the database, you must maintain a (plain text) copy of the" |
|
|
|
|
echo "administrator account name and password:" |
|
|
|
|
echo "" |
|
|
|
|
echo " \$ vi $RPM_INSTALL_PREFIX/etc/mariadb/my.pwd" |
|
|
|
|
echo "" |
|
|
|
|
echo "Now you can connect to MariaDB as the administrator with:" |
|
|
|
|
echo " \$ $RPM_INSTALL_PREFIX/bin/mysql \\ " |
|
|
|
|
echo " --user=root --password='<new-password>'" |
|
|
|
|
echo " --user=root --password='<root-password>'" |
|
|
|
|
echo "" |
|
|
|
|
echo "Then you usually create a database <database> for a user <user>" |
|
|
|
|
echo "and with password <password>:" |
|
|
|
|
echo " \$ $RPM_INSTALL_PREFIX/bin/mysqladmin \\%{l_nil}" |
|
|
|
|
echo " --user=root --password=<root-password> create <database>" |
|
|
|
|
echo " \$ $RPM_INSTALL_PREFIX/bin/mysql \\%{l_nil}" |
|
|
|
|
echo " --user=root --password=<root-password> mysql" |
|
|
|
|
echo " mysql> GRANT ALL PRIVILEGES ON <database>.*" |
|
|
|
|
echo " TO <username>@localhost IDENTIFIED BY '<password>';" |
|
|
|
|
echo " mysql> FLUSH PRIVILEGES;" |
|
|
|
|
echo " mysql> \\q" |
|
|
|
|
) | %{l_rpmtool} msg -b -t notice |
|
|
|
|
fi |
|
|
|
|
if [ $1 -eq 2 ]; then |
|
|
|
|