Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am writing a bash script that involves installing the mysql-server package on Ubuntu. The package interactively asks the user for the root MySQL password desired, however this is not good for me as I want the script to be fully automated without user involvment.

Is it possible to skip the password prompt, and manually set the root password using another method?

share|improve this question
Check this question and my answer. –  gronostaj Apr 4 '13 at 17:45
@gronostaj That's not what I am referring to. I mean the interactive prompt that forces you to type in a MySQL root password. –  Mark Apr 4 '13 at 17:49
See this question on Stackoverflow: stackoverflow.com/questions/1202347/… –  Pincopallino Apr 4 '13 at 18:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.