Running the BitNami LAMP stack with the system MySQL
The excellent BitNami LAMP stack contains its own MySQL, which is started automatically and used by PHP. If you for some reason want to use the MySQL that is installed in your host system you can do the following changes to your stack configuration:
Step 1 - Prevent the stack control script from starting MySQL
Edit the file ctlscript.sh in your LAMP stack root directory. and change the line
MYSQL_SCRIPT=$INSTALLDIR/mysql/scripts/ctl.sh
to