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
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
yum -y install mysql mysql-server
Select the second Script action on Configure
/sbin/chkconfig mysql-server on
/usr/bin/mysqladmin -u root password $DB_Pass
Select the third Script action on Start
/sbin/service mysqld restart