ShadyB_UK
February 15th, 2010, 08:47 PM
Hey all.
Recently, I've been developing a hosting system with Ubuntu as a base, and is installed through one simple installer.
It asks you a couple of questions at the start, then configures the server, installs all the relevant software, and then installs a copy of my custom made control panel.
The purpose of this is automation - This is being deployed on many servers.
Everything is great, until it comes to MySQL.
Basically, when the script apt-get's MySQL, it comes up with a prompt asking you to enter a root password for MySQL. (blue background, dialog box).
I was wondering if there's any way to suppress this, and instead have the password set automatically using the mysqladmin command and the password I've put in at the start of the script.
It's the only thing that's been really bugging me, as apart from that, it requires no intervention at all.
Even if I can get it to enter a keystroke (enter) at the prompt, it would be good enough, but if there's a way to pass the password to the actual mysql installer, that would be brilliant.
Any suggestions?
Also, you may notice I'm new to the forums, but I've been a hardcore user of Ubuntu for many years :)
Thanks in advance,
Lee.
Recently, I've been developing a hosting system with Ubuntu as a base, and is installed through one simple installer.
It asks you a couple of questions at the start, then configures the server, installs all the relevant software, and then installs a copy of my custom made control panel.
The purpose of this is automation - This is being deployed on many servers.
Everything is great, until it comes to MySQL.
Basically, when the script apt-get's MySQL, it comes up with a prompt asking you to enter a root password for MySQL. (blue background, dialog box).
I was wondering if there's any way to suppress this, and instead have the password set automatically using the mysqladmin command and the password I've put in at the start of the script.
It's the only thing that's been really bugging me, as apart from that, it requires no intervention at all.
Even if I can get it to enter a keystroke (enter) at the prompt, it would be good enough, but if there's a way to pass the password to the actual mysql installer, that would be brilliant.
Any suggestions?
Also, you may notice I'm new to the forums, but I've been a hardcore user of Ubuntu for many years :)
Thanks in advance,
Lee.