Automating MySQL configuration with kickstart

Posted by Nimmy Lebby on Server Fault See other posts from Server Fault or by Nimmy Lebby
Published on 2011-01-17T20:44:28Z Indexed on 2011/01/17 20:54 UTC
Read the original article Hit count: 207

I've been testing deployment for a website with some virtual servers. I have most of my deployment steps done via kickstart file (package installation and user creation). However, for MySQL I have to:

  1. Run mysql_secure_installation (sets up root password, deletes anonymous users, disallows root login remotely, removes test databases) ./

  2. Then, create the website's databases and the database user.

I'm not sure if this is possible in kickstart---especially the prompts in mysql_secure_installation. Perhaps someone has some suggestions or examples?

© Server Fault or respective owner

Related posts about linux

Related posts about mysql