Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Timothy Frew
Sympl
Commits
e5604bd4
Commit
e5604bd4
authored
Jul 23, 2018
by
Andrew Ladlow
Browse files
MySQL: Make new user's purpose clearer
parent
45e0913d
Changes
1
Hide whitespace changes
Inline
Side-by-side
mysql/debian/postinst
View file @
e5604bd4
...
...
@@ -49,7 +49,7 @@ if grep -qx 'password = ' /etc/mysql/debian.cnf && [ "$(mysql -u root -se "selec
if
[
-e
/etc/first-boot.d/.mysql.hash
]
;
then
mysql
-u
root
-e
"grant all privileges on *.* to 'admin'@'localhost' identified by password '*
$(
cat
/etc/first-boot.d/.mysql.hash
)
' with grant option;"
else
read
-p
"Enter password for admin@localhost MySQL user: "
password
read
-p
"Enter
a
password for
the
admin@localhost MySQL user
(To be used with phpMyAdmin)
: "
password
mysql
-u
root
-e
"grant all privileges on *.* to 'admin'@'localhost' identified by '
$password
' with grant option;"
fi
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment