Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:… – Pincopallino Apr 4 '13 at 18:08

You must log in to answer this question.

Browse other questions tagged .