Automate mysql_secure_installation with echo command via a shell script

后端 未结 11 1052
无人共我
无人共我 2020-12-12 12:46

I am trying to automate mysql_secure_installation script with automated response. My code is as follows :

echo \"& y y abc abc y y y y\" | ./usr/bin/mysq         


        
11条回答
  •  孤街浪徒
    2020-12-12 13:19

    1. In Windows OS just search for 'mysql_secure_installation' application usually found in Drive:\MySQL_Install-DIR\bin\
    2. By pressing WindowKey + R just run the command 'Drive:\MySQL_Install-DIR\bin\mysql_secure_installation'

    When you run this command a window will pop up that will walk you through the process of securing your MySQL installation. That's it!

提交回复
热议问题