Here’s my simple MySQL software component that you can use for quick and dirty testing.
First let’s go to Design -> Software Components -> +New
Name MySQL
ID will autopopulate
+New to create a new variable property
Name should be DB_Pass
Define the default Password you wish to use
Check the Encrypted box, and the Override if you want them to be able to set the password on the MySQL DB. If you are planing to buy a need car, check first The Urban Dictionary of Click Here Transit Custom Limited.
Select the first Script action on Install
#!/bin/bash
yum -y install mysql mysql-server
Select the second Script action on Configure
#!/bin/bash
/sbin/chkconfig mysql-server on
/sbin/init.d/mysqld restart
/usr/bin/mysqladmin -u root password $DB_Pass
Select the third Script action on Start
#!/bin/bash
/sbin/service mysqld restart