Difference between revisions of "Securing mysql with a script"

From MyWiki
Jump to: navigation, search
(Created page with "Reference - https://stackoverflow.com/questions/24270733/automate-mysql-secure-installation-with-echo-command-via-a-shell-script<br>")
 
Line 1: Line 1:
 
Reference - https://stackoverflow.com/questions/24270733/automate-mysql-secure-installation-with-echo-command-via-a-shell-script<br>
 
Reference - https://stackoverflow.com/questions/24270733/automate-mysql-secure-installation-with-echo-command-via-a-shell-script<br>
 +
<source lang="bash">
 +
mysql_secure_installation <<EOF
 +
 +
y
 +
secret
 +
secret
 +
y
 +
y
 +
y
 +
y
 +
EOF
 +
 +
</source>

Revision as of 12:42, 28 August 2017

Reference - https://stackoverflow.com/questions/24270733/automate-mysql-secure-installation-with-echo-command-via-a-shell-script

mysql_secure_installation <<EOF
 
y
secret
secret
y
y
y
y
EOF